How to create nested box in PlantUML? - uml

I cannot make a nested box in plantUML.
#startuml
box "B0" #LightBlue
Bob -> Alice : hello
Box "B1" #LightYellow
Bob --> Cunny : hi
end box
end box
#enduml
This gives an error that box cannot be nested.
Any other way to show nested box, like in layered diagrams?

It seems it's still not supported: http://forum.plantuml.net/6304/please-add-box-and-or-participant-nesting-ability
You can up-vote the feature request.

It's been implemented and you can use it if you have v1.2022.0 or a newer release. The feature seems to be in an early stage and it needs the teoz engine.
Example:
#startuml
!pragma teoz true
box "component"
box "sub1\n\n"
participant a
box "subsub1"
participant suba
end box
endbox
box "sub2"
participant b
endbox
end box
#enduml
Github issue for reference (The examples comes from here)

Related

AEM touch ui dialog 6.3 - Validation Error Icon is overlapping Description icon

I have a title component(touch-ui) in my project and made the title field mandatory by setting required(boolean) – true at the title property level. Now, when we save the dialog with an empty title field, validation fires up, but the triangular icon overlaps the description icon in the component. See the screenshot attached. Is there any way to resolve this?
Seeing the same behavior in We.retail title component.
It's the same in AEM 6.4. I've kind of assumed this was by design, so that more attention is drawn to the error.
If you look at the JavaScript behind the validation logic, you'll notice that the description icon receives the u-coral-screenReaderOnly CSS class as soon as a validation error appears, which results in its disappearance. It's not that the error icon overlaps the info one. The latter is explicitly hidden from sight.
This appears to be part of the Coral UI 2 client library. This isn't something you could fix on your own (an attempt to do that would be tricky and not maintainable). If you need this behaviour changed, you could try your luck contacting Day Care. It does look like a deliberate feature though.

Orchard CMS. Add sub items from edit screen

I'm trying to develop my first module in Orchard and stuck with the following problem.
I have Box content type that contain Books. What I want to achieve is to allow user to add books from box edit screen in admin. The process is the following:
User selects a Box in admin and click edit.
In edit screen a list of books is displayed with buttons "Edit", "Delete" and "Add Book"
The user clicks "Add Book" button and add book screen appears.
The user enters required metadata and clicks "Save"
The user is redirected back to Box edit screen with new book added to the list.
I'm looking for advise on what is the best way to implement this.
There are several ways to do that, most of which don't require building a module.
You could use the updated list feature in the new Orchard 1.8. That does pretty much exactly what you describe.
You could use taxonomies, where the boxes are terms (terms have their own content type that you can extend). The workflow is kinda backwards with this, where you put books in boxes rather than picking from the box which books belong.
You could use a content picker field configured for multiple items, and constrained to the book content type.
You could build your own module, with a relationship between your types, as explained here: http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations but except if this is a pure learning experience, there's little reason to go for that one, as the other three above are so much simpler, and don't require any coding.

nsoutlineview: right click without invoke "selection did change" delegate method

as the official "DragNDropOutlineView" sample project,
if i have already selected an item,clicked right button for menu,the right clicked item
will be selected & marked with a blue border,but selectionDidChange method was not invoked.
how did it implement?![enter image description here][1]
answer the question myself,
we can not implement this by coding, instead, we can create a menu in the interface builder, choose the table view or outline view, link the "menu" outlet to the menu you created just now.
now when you right click the item , it won't invoke the selectionDidChange notification.

hardcoded string “Button”, should use #string resource

I am new in Android app development and using Java language.
My problem is every time I make a TextView or Button there is a triangle with the exclamation mark below them.
and when I click it I saw a message saying:
hardcoded string “Button”, should use #string resource
I have two activities, in my main activity there is a Button that when you click it you will go in second activity.
But when I go to my main.java to make a code for the button. There's always the above shown error. I think the eclipse can't find the id of my button and same for my TextView they have same error message.
Here is the code I made:
Button b = FindViewById(R.id.button1);
I also add:
Button b = (Button) FindViewById(R.id.button1);
I am using the latest eclipse classic and ADT august issue. The platform is Android 4.1 API 16.
You shouldn't hardcode the "text" on the widgets use the strings resources ie., strings in the strings.xml to set the text. Declare the "text" you want to display as a string in strings.xml and access it using #string/your_string_name in the layout file.
Notice the id of the button, which is rounded in red. You have to use this id when you want to call it in a method, for an example
Button b = (Button) FindViewById(R.id.button1);
Furthermore, check whether your graphical layout matches with the image I have provided.
Just try your code again with these changes.
Your main.java would look like this.
I am a newbie too, but I believe I got this. So basically what's happening here, java wants you to put your hardcodes in string.xml. so that when accessing it, you will use the given methods below before:
.
But this is how it should be.
Let's start by string.xml
Then come back to your activity_main.xml

Cucumber with Extjs4 choose radio step not working

I'm Working on Ruby on rail 3.1 with Netzke 0.7.4 and Cucumber.
I use Cucumber with Netzke it work great but I have found some problem on choose radio step.
I use this step.
When /^(?:|I )choose "([^"]*)"$/ do |field|
choose(field)
end
It show this error message.
And choose 'Yes' for GST field
cannot choose field, no radio button with id, name, or label 'Yes' found (Capybara::ElementNotFound)
(eval):2:in `choose'
It's look like choose(locator) method can't find any radio button on my page.
That very strange because it have only 2 radio on page.
Question is how can I do with this radio?
Thanks.
Finally I have found answer I search check box instead of combo box and it work.
Is ExtJs 4 transform check box to radio?

Resources