Visibility setting with Ajax

2010-12-21 Thread Juraj Petko

Hi, i have 3 panels on my page:
wicket:extend
div align=center style=background-color:red;padding:20px
h2Epubs upload/h2
form wicket:id=form
div style=background-color:#304050
span wicket:id=uploadPanel1/
span wicket:id=uploadPanel2/
span wicket:id=uploadPanel3/
a href=# wicket:id=addLinkAdd next file/a
br/
input wicket:id=submitButton type=submit value=Datei(en) laden/
/div
div wicket:id=feedback class=error style=background-color:yellow/
/form
/div
/wicket:extend

and only after clicking addLink, the user should see the uploadPanel2. 
So i coded this:


add(new AjaxFallbackLink(addLink) {
private static final long serialVersionUID = 
-4427831923318024979L;


@Override
public void onClick(AjaxRequestTarget target) {
uploadPanel2.setVisible(true);
}
});

When i debug, the method onClick() is really entered and 
uploadPanel2.setVisible(true) is executed, but the panel is still not 
visible. What else i have to do?

 thanks!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



multilevel markup inheritance

2010-11-23 Thread Juraj Petko

Hello,
  i am starting to explorer this beautifull framework and want to make a
big use of markup inheritance. What i can't do is to make a page3, which
markup inherits from page2 and at the same time page2 markup inherits
from page1. Am i doing something wrong, or there is no support for this?
thanks, juraj


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: multilevel markup inheritance

2010-11-23 Thread Juraj Petko

oki, now its working fine also multilevel,  thx



Hi juraj

Absolutely no problem, wicket can handle that just easily.
Let's assume you've got a BasePage (containing for example the HTML 
header and the body tag), a LayoutPage (containing the main layout) 
and a specific page (Page1):


BasePage.html :
html
head.../head
body
wicket:childThis will be replaced by LayoutPage/wicket:child
/body
/html

LayoutPage.html :
wicket:extend
  ..layout stuff..
wicket:childThis will be replaced by Page1/wicket:child
  .. more layout stuff ..
/wicket:extend

Page1.html :
wicket:extend
  .. Page1 stuff ..
/wicket:extend

Matt

On 2010-11-23 14:31, Juraj Petko wrote:

Hello,
  i am starting to explorer this beautifull framework and want to make a
big use of markup inheritance. What i can't do is to make a page3, which
markup inherits from page2 and at the same time page2 markup inherits
from page1. Am i doing something wrong, or there is no support for this?
thanks, juraj 






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org