| Author |
Message |
|
|
Hello ldanut,
thanks for your reply but your suggested solution didn't work. I can set separate value bindings for each attribute width, height, top and left
width="#{basicWindow.width}"
height="#{ basicWindow.height}"
top="#{ basicWindow.top}"
left="#{ basicWindow.left}"
or set the values direct
width="400"
height="400"
top="400"
left="400"
the window pops up always on the same location.
In which version is the bug fixed?
Greetings, Axel
|
 |
|
|
Hello,
I went through the doc-examples to understand how to work with the window-component and
I recognized, that the window appears every time on the same location, doesn't matter wich
values to set for "top" or "left".
In the pdf you can read "You can define Window’s opening size by specifying height and width
attributes, and you can determine the location where it should open by specifying top and
left-hand coordinates in the div." That means, there is a way to set the exact location.
In my future application the user should be able to open windows, change their size and location.
When the user clicks on the close-button [X] an onclose-event is fired and this method reads
it's window's size (width and height) and it's location (top and left) and then stored in an
valueHolderBean so that, when opening the same window again, it should appears on the same location
with same size. So I modfied the window-basic.jsp like this:
an the corresponding backing bean (only modification here's showing), that has a request-scope:
The ValueHolder-bean with session-scope:
What happens:
The small window appears. If you change the size and close it, the values are stored in the
variables "width", "height", "top" and "left" of the ValueHolder-bean. The next time the window
appears with the last size (that is working!) but not on the last location. It seams that
the values "top" and "left" are totally ignored. Even if I set these values dirct in the jsp:
position="absolute" top="10px" left="10px"
or
position="absolute" top="300px" left="200px"
the windows appears at the same location. I tried to surround the window in an <e:div> tag
but without success.
What am I doing wrong?
Greetings, Axel
|
 |
|
|
I found my mistake.
Both window components were binded on the same backingBean. So that means, every window component must bind to their own bean.
Greetings, Axel
|
 |
|
|
Hello,
I created a jsp with a <e:menubar> that opens a popup component by clicking on a <e:menucell>.
The page includes 2 jsp's that representing a <e:window> component. When the menucell is clicked,
no window is opening. See this code:
An Error in IE6 occured: "domNode is Null or not an Objekt".
If I change the jsp by only including one jsp like this, it works:
I want to build up a "one-page-application" and of course it would work when I put every window
component with their children directly in the page, but then the page grow up too big. So I want to
make it modular by including every window-jsp.
I discovered when I surround every <e:include> tag with a <e:form> tag
the windows are opening but inside each window component is a <e:datatable> and some button nested and
the click-event outgoing from this window, is not processing. Nothing happens when clicking the button
"Filter". See this code of the including window-page:
What can I do?
Greetings, Axel
|
 |
|
|
Hello adina_mihai,
thanks a lot! Now it is working
Greetings Axel
|
 |
|
|
Hello adina_mihai,
thanks for reply but if I insert this in the action listener:
an error occured:
The method conjunction() in the type FilterFactory is not applicable for the arguments (Filter, Filter)
What can I do?
|
 |
|
|
Hello adina_mihai,
I went through these examples and understand how to work with a simple filter like this:
ECDataModel dataModel = dataTable.getDataModel();
dataModel.setFilter(simplica.util.filter.FilterFactory.eq("condition", "New"));
but I don't understand the syntax if I want to filter both condition "New" AND "Used"
dataModel.setFilter(simplica.util.filter.FilterFactory.Conjunction(...)......
Can you give me an example, please.
Greetings, Axel
|
 |
|
|
Hello,
is there an example available that shows the way how to use the ecDataModel filter?
Thanks, Axel
|
 |
|
|
Hello adina_mihai,
you are right. That's it! Now it works Thank you.
Axel
|
 |
|
|
|
I expected the same effect as on your demo. If you click a menucell there the whole page is not reloading.
|
 |
|
|
Hello,
I set up a new web-application in myeclipse to see how the ajax takes effect with the menubar component but ajax ist rendering.
Here's the jsp file:
I modyfied the backing bean to print out som informations on the console:
When a menucell is clicked, you can see something like that on the console:
######### EVENT ########## wer hat geklickt: _id4
######### EVENT ########## welcher Wert: Window
So it fires an event but furthermore nothing happened on the page. If I change the ajax value from the menubar component form ajax="true" to ajax="false" the page is fully rendered, of course with the correct output.
The application is running on tomcat 5.5.17 and I'm using sun's RI 1.1.01
The web.xml
The faces-config.xml:
I'm just discovering the ecuiser library at this time, so I have just a trial license key and I can't imagine that this has something to do with this problem. So the question here is:
What am I doing wrong?
Greetings, Axel
|
 |
|
|