[Wicket-user] Question about multiple AjaxSubmitLinks in one form

2007-07-19 Thread rc.china

Suppose that I have one form which has two parts: each part has an
AjaxSubmitLink and some other input components(such as TextField,
CheckBox,...):
[code]
public class MyPage extends WebPage {
public MyPage()
{
Form form = new Form(...);
add(form);

//Part1
AjaxSubmitLink link1 = new AjaxSubmitLink(...)
TextField comp11 = new TextField(...)
CheckBox comp12 = new CheckBox(...)
ListChoice comp1n = new ListChoice(...)
form.add(link1);
form.add(comp11);
form.add(comp12);
form.add(comp1n);


//Part2
AjaxSubmitLink link2 = new AjaxSubmitLink(...)
TextField comp21 = new TextField(...)
CheckBox comp22 = new CheckBox(...)
ListChoice comp2n = new ListChoice(...)
form.add(link2);
form.add(comp21);
form.add(comp22);
form.add(comp2n);
}
}
[/code]

MyQuestion: when I click (AjaxSubmitLink link1) of Part1, I want to prevent
Part2 to submit their data( and their backend Model object). What can I do ?

-- 
View this message in context: 
http://www.nabble.com/Question-about-multiple-AjaxSubmitLinks-in-one-form-tf4108348.html#a11682878
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Will the component be serialized twice ?

2007-07-18 Thread rc.china

This is my code:
[code]
public class MyPage extends WebPage {
private Panel panel = null;
public MyPage()
{
this.panel = new MyPanel(...);
add(this.panel)
//...
}
[/code]

Will the panel be serialized twice ? Thx!
-- 
View this message in context: 
http://www.nabble.com/Will-the-component-be-serialized-twice---tf4107511.html#a11680572
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to apply sth. like setStripWicketTags() to a single component ?

2007-07-15 Thread rc.china

I am writing a base component and will provide it for others. So what I can
control is only the component.


Martijn Dashorst wrote:
 
 On 7/14/07, rc.china [EMAIL PROTECTED] wrote:
 One of my componets is based on ListView and when it renders, the html
 page
 contains too many wicket:panel /wicket:panel s,  and I want to remove
 them to reduce the size of html page.
 
 But why not strip all of them?
 
 Martijn
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Apache Wicket 1.3.0-beta2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-apply-sth.-like-setStripWicketTags%28%29-to-a-single-component---tf4072473.html#a11602454
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to apply sth. like setStripWicketTags() to a single component ?

2007-07-14 Thread rc.china



Jean-Baptiste Quenot-3 wrote:
 
 Just curious, what's the usecase for this?
 

One of my componets is based on ListView and when it renders, the html page
contains too many wicket:panel /wicket:panel s,  and I want to remove
them to reduce the size of html page.

-- 
View this message in context: 
http://www.nabble.com/How-to-apply-sth.-like-setStripWicketTags%28%29-to-a-single-component---tf4072473.html#a11593628
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to apply sth. like setStripWicketTags() to a single component ?

2007-07-12 Thread rc.china

We know that there is IMarkupSetting.setStripWicketTags(), but it seems that
it is a global setting. I want to apply sth. like setStripWicketTags() to a
single component(for example: Panel/Fragment/Page), could I ? How ?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/How-to-apply-sth.-like-setStripWicketTags%28%29-to-a-single-component---tf4072473.html#a11573810
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread rc.china

I have exactly the same problem and I am using wicket 1.2.6. I am certain
that the htc file has been copied.

If I include gif/css files, it is OK. And by look in http message, it is
as follows:
GET /mytest/nested/resources/wicket.examples.nested.MenuPanel/menupanel.css
GET /mytest/nested/resources/wicket.examples.nested.MenuPanel/dropmenu.gif

However, if I include htc file, it is wrong, And by look in http message,
it is as follows:
GET /mytest/csshover.htc

It is very strange!


Eelco Hillenius wrote:
 
 
  Could anyone tell me why the above technique did not work for *.htc
 files?


 Are you sure .htc files are being copied/included in your build process?
 
 Yeah, it could be that those files aren't copied.
 
 Also, what does you log say... Wicket logs a warning when it can't
 serve a package resource properly. And the ultimate test is to set a
 breakpoint in WicketServlet/Filter#get and see what kind of requests
 are made.
 
 Eelco
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-include-*.htc-files-in-css-files--tf3238484.html#a11535295
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread rc.china

I have do some further tests. This is the content of my original CSS file:

body {background: #EEE; color: #000;
  behavior: url(csshover.htc);} /* WinIE behavior call */
ul.menu1 li.submenu li.submenu {background: url(submenu.gif) 95% 50%
no-repeat;}

1)If I change like this (Just for test):

body {background: #EEE; color: #000;
  background: url(csshover.htc);} /* WinIE behavior call */
ul.menu1 li.submenu li.submenu {background: url(submenu.gif) 95% 50%
no-repeat;}

Then I can see that the htc file is downloaded correctly:
GET /mytest/nested/resources/wicket.examples.nested.MenuPanel/csshover.htc

2)Or if I change like this (Just for test):
body {background: #EEE; color: #000;
  behavior: url(csshover.htc);} /* WinIE behavior call */
ul.menu1 li.submenu li.submenu {background: url(csshover.htc) 95% 50%
no-repeat;}

Then I can also see that the htc file is downloaded corrently:
GET /mytest/nested/resources/wicket.examples.nested.MenuPanel/csshover.htc


So it seesm that only background:url(...) in CSS can be processed
correctly while behavior:url(...) can not. Is this a bug in Wicket or IE ?

-- 
View this message in context: 
http://www.nabble.com/How-to-include-*.htc-files-in-css-files--tf3238484.html#a11535609
Sent from the Wicket - User mailing list archive at Nabble.com.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AttributeModifier/SimpleAttributeModifier have no effect with ListView?

2007-07-10 Thread rc.china

It seems that AttributeModifier/SimpleAttributeModifier have no effect with
ListView. For example, if we change
wicket.examples.nested.RecursivePanel.java a little like this:
1)original
public RecursivePanel(final String id, List list)
{
super(id);
add(new Rows(rows, list));
setVersioned(false);
}
private static class Rows extends ListView
{
 ...
}
 
2) after change:
public RecursivePanel(final String id, List list)
{
super(id);
add(new Rows(rows, list).add(new
SimpleAttributeModifier(class,testclass))); setVersioned(false);
}

private static class Rows extends ListView
{
 ...
}

We can find that the output html page doest not include anything like
class=testclass. What's the problem ? Thanks!
-- 
View this message in context: 
http://www.nabble.com/AttributeModifier-SimpleAttributeModifier-have-no-effect-with-ListView--tf4059735.html#a11533822
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AttributeModifier/SimpleAttributeModifier have no effect with ListView?

2007-07-10 Thread rc.china

Additionally, it seems that setRenderBodyOnly(true) has no effect with
ListView.

for example: 
1)original
public RecursivePanel(final String id, List list)
{
super(id);
add(new Rows(rows, list));
setVersioned(false);
}
private static class Rows extends ListView
{
 ...
}
 
2) after change:
public RecursivePanel(final String id, List list)
{
super(id);
add(new Rows(rows, list)
.add(new SimpleAttributeModifier(class,testclass))
.setRenderBodyOnly(true)
);  
 setVersioned(false);
}

private static class Rows extends ListView
{
 ...
}

We can find that the output html page  still has the html tag like this:

   ...

-- 
View this message in context: 
http://www.nabble.com/AttributeModifier-SimpleAttributeModifier-have-no-effect-with-ListView--tf4059735.html#a11534176
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localized Attributes

2007-07-09 Thread rc.china

The Pro Wicket book has provided a solution:
1)
input type=submit wicket:id=save value=Save/

2)
form.add(new Button(save,new ResourceModel(userProfile.save));

3)
You need to specify the localized message in the properties file
(UserProfilePage.properties, for example):
userProfile.save = Save

The equivalent Spanish translation in UserProfilePage_es.properties is:
userProfile.save = Grabar


antonyb wrote:
 
 Hello,
 
 Just spent a while reading through the forum archives trying to find out
 how to localize attributes, particularly 
 
 input type=submit value=XX /
 
 There's a couple of very long threads about this, but as far as I can see
 no conclusion was reached!
 
 So, is there an accepted way of adding an entry to a page.properties file
 and using that entry as the value of a submit button?
 
 Thanks
 
 Ant.
 

-- 
View this message in context: 
http://www.nabble.com/Localized-Attributes-tf4053735.html#a11515288
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Menus?

2007-06-26 Thread rc.china

I have some idea to share:
1. Make Tree/Menu/Tab using pure HTML and CSS (Maybe sometimes we have to
use a little javascript)
   The book Wrox CSS Instant Results (Apr
2006)(http://www.amazon.com/CSS-Instant-Results-Programmer/dp/047175126X/ref=pd_bbs_sr_1/105-5643042-3040404?ie=UTF8s=booksqid=1182907188sr=8-1)
has given some excellent examples. These examples use just unordered list
(ul li) , CSS and a little JS to produce Menu/Tab/Layout. I have also
one example to use just unordered list, CSS and a little JS to produce Tree.
   
2. Wrapp the above examples in Wicket. Because the examples use just
ulli, so it is very easy to produce a dynamic Tree/Menu/Tab.


igor.vaynberg wrote:
 
 On 6/26/07, Doug Leeper [EMAIL PROTECTED] wrote:

 I am new to wicket and am currently researching the capabilities of this
 framework.  I believe this is the route to go in developing web
 applications
 (previous experience has been JSP).

 The question I have is there any components that mimic
 ToolBar/Menu/MenuItem functionality?  In my quick look, I couldn't find
 anything.  If not, does anyone recommend anything that can integrate with
 Wicket?  BTW...the menu/menu items need to be dynamic depending on some
 current domain state.

 Thanks in advance.
 - Doug

 
 pick any javascript lib that builds menus. it should be easy to integrate,
 and im sure you will get help on how to do that here.
 
 -igor
 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-Menus--tf3983970.html#a11316865
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-24 Thread rc.china

yehh, that's excellent! I know now, thank you, igor.vaynberg.


igor.vaynberg wrote:
 
 no they do not, all that is taken care off by wicket markup inheritance.
 for
 example:
 
 class basepage extends  webpage {
   abstract componentwithassociatedmarkup newarea1(string id);
   abstract componentwithassociatedmarkup newarea2(string id);
 }
 
 basepage.html
 html
 body
 before1 div wicket:id=area1/div before2 div
 wicket:id=area2/div
 wicket:child/
 /body
 /html
 
 class page1 extends basepage {
//implementation of newarea1 and 2
 }
 
 page1.html
 wicket:extend
 wicket:fragment for area 1/wicket:fragment
 wicket:fragment for area 2/wicket:fragment
 /wicket:extend
 
 as you can see in page1.html you do not need to repeat before1 and before2
 markup.
 
 -igor
 

-- 
View this message in context: 
http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11272841
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-23 Thread rc.china


igor.vaynberg wrote:
 
 This solution has some limitations while multiple wicket:child has not:
 1)We have to repeat the common parts of BasePage.html in all of its
 descendants (such as DerivedPage1.html, DerivedPage2.html ...).
   == If we have multiple wicket:child, we have no need to do this.
 2)If we chang the common parts in BasePage.html, we have to do the same
 change in all of its descendants.
   == If we have multiple wicket:child, we just do the change in
 BasePage.html
 
 
 points one and two are not true. you would use wicket's markup inheritance
 so the derived pages do not have to repeat anything from basepage.
 
 
I mean that derived pages's html files have to repeat all the common parts
in BasePage.html and that if we change the common parts in BasePage.html, we
have to do the same change in all of its descendant html files. I know that
we have no need to make any change in its descendant java files.


igor.vaynberg wrote:
 
 3)The descendants have to provide a XXXPanel to encapsulate some
 components
   == If we have multiple wicket:child, we can just put these
 components
 between wichet:child and /wicket:child, such as
   wicket:child
  label wicket:id=labelaaa/label
  input wicket:id=input value=test/
   /wicket:child
 
 
 also not strictly true. it doesnt need to be a panel, it can as easily be
 a
 fragment which means it would be defined inline in the derived page.
 instead
 of wicket:extend you would use wicket:fragment
 
It seems that wicket:fragment is ok:)



igor.vaynberg wrote:
 
 all that said, like i said before there is nothing stopping you from
 implementing what you want. all the api to do so is exposed - it is just
 not
 the default the wicket team prefers.
 
I am just a fan of Wicket. and want to get a thorough understanding of
Wicket:)

-- 
View this message in context: 
http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11271116
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-22 Thread rc.china



Scott Swank wrote:
 
 I've often seen folk want what I see as abstract tags that can then
 be implemented by subclasses.  The way I've handled that for our
 application is by creating an abstract component (say it's a page)
 with div tags with appropriate wicket:ids.
 
 public class BasePage extends WebPage
 {
   public BasePage()
   {
 add(buildFoo(foo));
 add(buildBar(bar));
   }
 
   public abstract Panel buildFoo(String id);
   public abstract Component buildBar(String id);
 }
 
 Then subclass appropriately.
 

This solution has some limitations while multiple wicket:child has not: 
1)We have to repeat the common parts of BasePage.html in all of its
descendants (such as DerivedPage1.html, DerivedPage2.html ...).
  == If we have multiple wicket:child, we have no need to do this.
2)If we chang the common parts in BasePage.html, we have to do the same
change in all of its descendants.
  == If we have multiple wicket:child, we just do the change in
BasePage.html
3)The descendants have to provide a XXXPanel to encapsulate some components
  == If we have multiple wicket:child, we can just put these components
between wichet:child and /wicket:child, such as
  wicket:child
 label wicket:id=labelaaa/label
 input wicket:id=input value=test/
  /wicket:child

-- 
View this message in context: 
http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11263485
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can we change a component dynamically in Wicket ?

2007-06-21 Thread rc.china


swaroop wrote:
 
 I can see a few things gond wrong here...
 
 1 First in the onclick method , this does not refer to the original
 parent
 to which label  was added initially as label is the component u want to
 replace 
 
 2 When u want to add a new component to replace the original component
 in the parent heirarchy , u need to call replace method or replaceWith
 method
 
 3 Dont create the textfield right at the beginning. Do it in the onClick
 method. 
 Here it just hangs out there until user clicks the link
 
 -swaroop
 

you are right, I have make some mistake.




Timo wrote:
 
 This is suspicious. I don't think you should add components 
 to the hierarchy during ajax request processing, and 
 definitely not if-else what you add when you have static 
 markup (i.e. no repeaters). 
 
 Always add both components, and set their visibility as 
 needed. Wicket visibility controls whether the comoponent 
 produces any markup at all, so it's stronger than HTML 
 visibility. 
 
 With ajax updates of visibility you need a placeholder to 
 update around the component (as invisible components don't 
 provide any markup which ajax could update). 
 
 Best wishes, 
 Timo 
 
 P.S. Congratulations to Apache Wicket for graduating! 
 
 
 -- 
 Timo Rantalaiho 
 
I just show what i want using this simple example. In practice, I have a
menu/tree link and i want to dynamically show different content in one area
for each menu item or tree item.
If we use placeholders for each of them, it would be terrible.


Thank you guys. I have found another mistake in this example. In the html
template:
html
body
  
  br/
   Click here 
/body 
/html

The  is ok for wicket.markup.html.basic.Label, however,
wicket.markup.html.form.TextField asks for input, so it is disappointing.
-- 
View this message in context: 
http://www.nabble.com/How-can-we-change-a-component-dynamically-in-Wicket---tf3956267.html#a11227255
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can we change a component dynamically in Wicket ?

2007-06-21 Thread rc.china

It seems that Lable use  s p a n  tag while TextField use  i n p u t  tag 
and that they conflict. I have changed the code like this and it still does
not work properly. Does anyone have any  workaround ? Thank you!

public class Login extends WebPage {
private int count = 0;

Label label = null;
TextField textField = null;

public Login() {
super();

label = new Label(label, new PropertyModel(this, count));
label.setOutputMarkupId(true);

textField = new TextField(label, new PropertyModel(this, 
count));
textField.setOutputMarkupId(true);  

AjaxLink ajaxLink = new AjaxLink(ajaxLink) {
public void onClick(AjaxRequestTarget request) {
count++;

if (count % 2 == 0)
{
this.findPage().replace(label);
request.addComponent(label);

}
else
{
this.findPage().replace(textField);
request.addComponent(textField);

}   
}
};

this.add(label);
this.add(ajaxLink);
}

public int getCount() {
return count;
}

public void setCount(int count) {
this.count = count;
}
}
-- 
View this message in context: 
http://www.nabble.com/How-can-we-change-a-component-dynamically-in-Wicket---tf3956267.html#a11227330
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-21 Thread rc.china

Panels and fragments are useful. As of page layout, however, wicket:extend
/ wicket:child is more natual than Panels and fragments.

Some possible solutions is:
1) use different tag values to differentiate: 
...
wicket:child childid=1/
...
wicket:child childid=2/
...
==
...
wicket:extend extendid=1
...
/wicket:extend
...
wicket:extend extendid=2
...
/wicket:extend
...

2)use wicket:extendN wicket:childN (N=1,2,3,...) instead of
wicket:extend wicket:child
...
wicket:child1/
...
wicket:child2/
...
==
...
wicket:extend1
...
/wicket:extend1
...
wicket:extend2
...
/wicket:extend2
...
-- 
View this message in context: 
http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11245019
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can we change a component dynamically in Wicket ?

2007-06-20 Thread rc.china

Sorry, one error in the code:
this.add(...)   == this.findPage().add(...)

But the output is the same:(


-- 
View this message in context: 
http://www.nabble.com/How-can-we-change-a-component-dynamically-in-Wicket---tf3956267.html#a11226186
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can we change a component dynamically in Wicket ? (ccc rrr)

2007-06-20 Thread rc.china

Sorry, one error in the code: 
this.add(...)   == this.findPage().add(...) 

And we change like above, the output is what we want:)

-- 
View this message in context: 
http://www.nabble.com/Re%3A-How-can-we-change-a-component-dynamically-in-Wicket---%28ccc-rrr%29-tf3956306.html#a11226195
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user