[Wicket-user] Highlight current menu using Generics

2007-06-12 Thread Bruno Borges

I made a post on my blog about how to do a conditional current menu using
Generics and Page Inheritance. Take a look!

http://bborges.blogspot.com/2007/06/wicket-current-menu-with-generics.html

[]'s!
--
Bruno Borges
Summa Technologies Inc.
www.summa-tech.com
(11) 8565-7739
(11) 3055-2060
(48) 8404-1300
-
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] Including wicket page from JSP?

2007-05-25 Thread Bruno Borges

You can do it with a runtime include

jsp:include page=/site/MyBookmarkablePage /

But watch out for conflicts between HTMLs and you will need to do some hacks
like substring code inside body tag only. Something like that. Possible it
is, but isn't out of the box. :D

Everything is possible.

[]'s
--
Bruno Borges
Summa Technologies Inc.
www.summa-tech.com
(11) 8565-7739
(11) 3055-2060
(48) 8404-1300

On 5/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


Hi

I wont expect the above to be possible, but sometimes you just dont
know? Is it possible, currently we are including it via an iframe tag,
some say thats a bad way todo it...

Whats your 2 cents?

regards Nino

-
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

-
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] Wicket 1.3 ready for development?

2007-04-04 Thread Bruno Borges

Erik, could you please share with us your results about this comparison
between Tapestry/GWT and Wicket ?

[]'s

On 3/31/07, Erik van Oosten [EMAIL PROTECTED] wrote:


Thanks Eelco, Frank,

1.3 it will be.

Regards,
Erik.


--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
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





--
Bruno Borges
Summa Technologies Inc.
www.summa-tech.com
(48) 8404-1300
(11) 3055-2060
-
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


Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Bruno Borges
Will this patch be available in WICKET_1_2 ?:DOn 8/17/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote:Thanks. I submitted that change. Please anyone, whenever you feel like
you have to implement some hack to get a Wicket component workingproperly, send this list a note so that we can either confirm it is aknown issue, or discuss alternatives or like in this case apply apatch.
Cheers,EelcoOn 8/17/06, Tymur Porkuyan [EMAIL PROTECTED] wrote: By the way, the current implementation of default button ruins design
 sometimes (I do not exactly remember the case right now, but I can try to reproduce if necessary). I was forced to rewrite the appendDefaultButtonField to add position: absolute to the default
 pseudo-button.@Overrideprotected void appendDefaultButtonField(final MarkupStream markupStream, final ComponentTag openTag){final AppendingStringBuffer buffer = new AppendingStringBuffer();
// get the value, first seeing whether the value attribute is set by a model String value = this.getDefaultButton().getModelObjectAsString(); if (value == null || .equals(value))
{// nope it isn't; try to read from the attributes// note that we're only trying lower case herevalue = this.getDefaultButton().getMarkupAttributes().getString(value);
}// append the button final String userAgent = ((WebClientInfo)this.getSession().getClientInfo()).getUserAgent(); buffer .append(input type=\submit\
 value=\).append(value).append(\ name=\) .append(this.getDefaultButton().getInputName()).append(\); if (userAgent != null  
userAgent.indexOf(MSIE) != -1){buffer.append(style=\width: 0px; height: 0px; position: absolute;\);}else{
buffer.append( style=\display: none\);} buffer.append(/); this.getResponse().write(buffer);}
 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- 
Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Buttons and Forms

2006-08-15 Thread Bruno Borges
How to set the default operation when ENTER is pressed any field in the form? There's a form with 4 buttons (in html and in java) that simply send user to others pages, and the normal button to submit data with no corresponding button in Java, only in the html.
Thanks-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] LoadableDetachableModels and Trees

2006-08-15 Thread Bruno Borges
Is it possible to use LDMs and Trees?I find quite difficult to understand how to put them toguether. Could anyone give some hint? :)Thanks-- Bruno BorgesSumma Technologies Inc.
www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Google IG - How to

2006-07-15 Thread Bruno Borges
The Personalized Home's Google webpage has a support for dynamic panels, in which the user can add, remove and positionate the panels around the page.www.google.com/ig
How could that be implemented using Wicket? :)[]'s-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Several times the same panel on a page

2006-07-10 Thread Bruno Borges
It's just like in JFC Swing.You can't add the same JButton's instance into several JPanels... ;)[]'sOn 7/10/06, Johan Compagner 
[EMAIL PROTECTED] wrote:use a listview if you want repeating stuff
But what do you mean exactly with the same panel?The same instance? That is not possible. A instance can only be used once in a page.You can add more instances of the panel to your page. But then also the wicket:id's don't have to be the same or something
You can give the different names.johanOn 7/10/06, Alban Duval
 [EMAIL PROTECTED] wrote:
Hi all,I'd like to know if there is a way to add several times the same panel
on the same page ??It seems to be impossible because it means to add several times elementwith the same wicket:id... Considering this, I think the question couldbe : could we change dynamically the wicket:id of some elements ??
AD.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Call Javascript function after page is loaded

2006-06-24 Thread Bruno Borges
Hi all.I'm coding a Modal Feedback Panel, but I need to call a function after the page is loaded to resize the div to fill the entire window.What's the best solution to define a _javascript_ function for a component that extends Panel, and it's called after the Page containing that component to be called?
Thanks-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Two or more apps in same deployment

2006-06-14 Thread Bruno Borges
What could be the issues if two or more Wicket applications are deployed in the same Web Application? (two wicket servlets in web.xml; /app1, /app2)How easy is to integrate them?How should we modularize our applications so a huge project can have modules with teams working independently but not totally isolated?
Thanks-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Two or more apps in same deployment

2006-06-14 Thread Bruno Borges
Sharing data, for example user info.Pass one object from a page to another, POJO-like... etc...Setting a link from app1/PageA to app2/PageB with new PageLink(PageB.class)... How would that be handled by wicket?
These are just some questions I could find about this subject.On 6/14/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:take a look at wicket-examples - every example is its own wicket application/servlet and it works like a charm.
integration i dont know about, depends on what you mean by integration :)-Igor
On 6/14/06, Bruno Borges [EMAIL PROTECTED]
 wrote:

What could be the issues if two or more Wicket applications are deployed in the same Web Application? (two wicket servlets in web.xml; /app1, /app2)How easy is to integrate them?How should we modularize our applications so a huge project can have modules with teams working independently but not totally isolated?
Thanks-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com
(11) 8565-7739 - (11) 3846-1622

___Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Two or more apps in same deployment

2006-06-14 Thread Bruno Borges
Matej, I believe we all know that is not possible to share one session between two different Web Applications.But the question is: can a Wicket Session be shared between two or more Wicket Applications in the _same_ Web Application?
ps- maybe WebApplication class should be renamed to WicketApplication? :)On 6/14/06, Matej Knopp [EMAIL PROTECTED]
 wrote:That are not two web application. Just two different wicket applications
(wicket servlet) in the same webapplication (context).There is no way of sharing session between two web applications.-MatejVincent Jenks wrote: I was wondering this myself actuallyhow can a session be shared
 between two apps? On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: take a look at wicket-examples - every example is its own wicket
 application/servlet and it works like a charm. integration i dont know about, depends on what you mean by integration :) -IgorOn 6/14/06, Bruno Borges 
[EMAIL PROTECTED] wrote: What could be the issues if two or more Wicket applications are deployed in the same Web Application? (two wicket servlets in 
web.xml; /app1, /app2) How easy is to integrate them? How should we modularize our applications so a huge project can have modules with teams working independently but not totally isolated?
 Thanks -- Bruno Borges Summa Technologies Inc. www.summa-tech.com
 (11) 8565-7739 - (11) 3846-1622 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is there a shuttle(?) component?

2006-05-31 Thread Bruno Borges
I don't know how to name it, but Shuttle was the name I've seen people using to specify this kind of component:  
| Item 1 |  | Item 3 |
| Item 2 |  | Item 4 || | 
|  || |  | |
||  ||Where:
 : move all right : move all selected right... same, but to left sideIf there's nothing like this ready-to-use, can somebody shot an idea on how to implement? Some first steps would be nice... :)
In the model, would be something like:- In the left select, a list of available categories- In the right select, a list of associated categories
I think on something like this:ShuttleList s = new ShuttleList(shuttle, new ShuttleModel(availableItems, selectedItems) { 
 public void populateItem(Item i) { ...
 }}));And then:
List newSelectedItems ((ShuttleModel) s.getModel()).getSelectedItems();
Now, 'newSelectedItems' should have objects that came from 'availableItems' and shouldn't have objects removed from 'selectedItems'.
[]'s-- Bruno BorgesSumma Technologies Inc.www.summa-tech.com(11) 8565-7739 - (11) 3846-1622


Re: [Wicket-user] Wicket 1.2 released!

2006-05-24 Thread Bruno Borges
Martjin, how about call svn update mail_signature ?Wicket 1.2 released
!! Write Ajax applications without touching _javascript_!On 5/24/06, Martijn Dashorst 
[EMAIL PROTECTED] wrote:
It just happens that tomorrow is a national holiday in the Netherlands... so... I might take you up on that offer ;)Martijn
On 5/24/06, Vincent Jenks
 [EMAIL PROTECTED] wrote:

Just in time, sweet!Great work guys!Truly an amazing framework andamazing piece of software - the best!Now, where's that book? ;) - just jokes...it might be nice to have aday off, eh?-v

On 5/24/06, middledot [EMAIL PROTECTED] wrote: A big thank you for your exceptional dedication to the project.
 Les -- View this message in context: 
http://www.nabble.com/Wicket+1.2+released%21-t1673750.html#a4538950
 Sent from the Wicket - User forum at 
Nabble.com. --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user---All the advantages of Linux Managed Hosting--Without the Cost and Risk!Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmdlnkkid7521bid$8729dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- 
http://wicketframework.org

-- Bruno BorgesSumma Technologies do Brasil Ltda.(11) 8565-7739 - (11) 3846-1622


Re: [Wicket-user] ListView.setVisible(false) doesn't work at AjaxFallbackLink

2006-05-18 Thread Bruno Borges
One thing at a time:1) setVisible works, when not doing through Ajax components like AjaxLink;2) ListView outputs one different id for each repeated line.3) when calling ListView.setVisible(false) from some onClick(AjaxRequestTarget), it does 
not works.So pay attention to 3': setVisible can be called from anywhere that ListView does not have to know about. And this problem I'm talking about, it's been called from an Ajax component. This let me conclude that this code 
should work:...final ListView listView = new ListView(list, items) { ... };
listView.setOutputMarkupId(true);add(listView);final Label label = new Label(foo, new Model(Foo));
AjaxFallbackLink link = new AjaxFallbackLink(ajaxLink) {
 public void onClick(AjaxRequestTarget target) {  listView.setVisible(false); label.setVisible
(false);  target.addComponent(label); // this one works  target.addComponent(list); // this does NOT works
 }};
add(link);...The way setVisible(false) is been called should not be important on how the component must behave. If it should, so in the javadoc would be needed to have some comment warning the user about that. 
Do not call setVisible(false) from Ajax components.That's what I think.On 5/18/06, Alvar Lumberg
 [EMAIL PROTECTED] wrote:yea, my bad. I was thinking about ajax side of things, sorry.
On 5/18/06, Johan Compagner [EMAIL PROTECTED] wrote: setVisible doesn't work? It should work fine listview will not get rendered when you set it to none
 visible. And yes (talking to igor) i think it is a bit stupid that we do generate the items when the listview is not visible.. johan On 5/18/06, Alvar Lumberg 
[EMAIL PROTECTED] wrote: Bruno, your problem is more of an issue with code beauty and design? I agree that it's a bit misleading to have an setVisible method that
 does nothing... As adding a fairly synthetic AjaxComponent subclass to Component for using as a parent for every ajax-enabled component doesn't seem justified, what if ListView (and other possible
 repeaters) would throw UnsupportedOperationException or something like that? Of course, that would mean making Component.setVisible not final... Alvar On 5/18/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:  i disagree,  wicket's primary usecase is not ajax, but regular rendering. ajax is a very  nice bonus and does not always work as smoothly as we would like.
   now the ajax solution for the listview is quiet easy, put it into a  webmarkupcontainer and update that container instead of the listview via  ajax   WebMarkupContainer listviewcontainer=new
  WebMarkupContainer(listviewcontainer);  ListView listview=new ListView(listview, .   listviewContainer.add (listview);   span wicket:id=listviewcontainerulli
  wicket:id=listviewblah/li/ul/span   ... target.addComponent(listviewcontainer);   this has the added advantage of hiding the listview's container, be that a
  ul or a table   -Igor On 5/17/06, Bruno Borges  [EMAIL PROTECTED] wrote:
one thing we might try is to add an isvisible check to  internalOnAttach() so that lsitview does not create children if it is not visible. johan what do you think?
  Igor, the problem is that we need to make possible the call for  setVisible(false), just like any other component... _after_ the component
  was printed out (for example, hidding a list view within an AjaxLink). If this can't be done, ListView must be of other type except Component.
 On 5/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Sure, I know about that, but the way we code for other things like  Label or TextField, it works, right? So, for ListView it should work too.
  It's a component just like other. listview is very much different from ordinary components like label and
  textfield. listview is a repeater. repeaters have no markup of their own and  they produce no markup.   the markup you assign to the listview using wicket:id the listview
  delegates to its children. the markup you see in the output generated by  listview does not come from the listview itself, but from its children that  render themselves.   
one thing we might try is to add an isvisible check to  internalOnAttach() so that lsitview does not create children if it is not  visible. johan what do you think?   
-Igor --   Bruno Borges   Summa Technologies
   --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user---Using Tomcat but need to do more? Need to support web services, security?
Get

Re: [Wicket-user] ListView.setVisible(false) doesn't work at AjaxFallbackLink

2006-05-18 Thread Bruno Borges
But why? Of course setVisible works on listview, why wouldn't it? Theproblem is that you are adding the list view to target. You should add a
component that contains the listview.Matej, ListView is a component conceptually equal to Label, TextField or whatever. The code I sent doesn't work. And yes I'm adding it to a target, the same way I do for a Label which works fine without adding it to a parent component.
On 5/18/06, Matej Knopp [EMAIL PROTECTED] wrote:
Bruno Borges wrote: One thing at a time: 1) setVisible works, when not doing through Ajax components like AjaxLink; 2) ListView outputs one different id for each repeated line.
 3) when calling ListView.setVisible(false) from some onClick(AjaxRequestTarget), it does not works. So pay attention to 3': setVisible can be called from anywhere that ListView does not have to know about. And this problem I'm talking
 about, it's been called from an Ajax component. This let me conclude that this code should work: ... final ListView listView = new ListView(list, items) { ... }; 
listView.setOutputMarkupId(true); add(listView); final Label label = new Label(foo, new Model(Foo)); AjaxFallbackLink link = new AjaxFallbackLink(ajaxLink) {
 public void onClick(AjaxRequestTarget target) { listView.setVisible(false); label.setVisible (false); target.addComponent(label); // this one works 
target.addComponent(list); // this does NOT works } }; add(link); ... The way setVisible(false) is been called should not be important on how the component must behave. If it should, so in the javadoc would be
 needed to have some comment warning the user about that.  Do not call setVisible(false) from Ajax components.But why? Of course setVisible works on listview, why wouldn't it? Theproblem is that you are adding the list view to target. You should add a
component that contains the listview.-Matej That's what I think. On 5/18/06, *Alvar Lumberg* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: yea, my bad. I was thinking about ajax side of things, sorry. On 5/18/06, Johan Compagner 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: setVisible doesn't work? It should work fine listview will not get rendered when you set
 it to none visible. And yes (talking to igor) i think it is a bit stupid that we do generate the items when the listview is not visible..
 johan On 5/18/06, Alvar Lumberg  [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Bruno, your problem is more of an issue with code beauty and design? I agree that it's a bit misleading to have an setVisible method that
 does nothing... As adding a fairly synthetic AjaxComponent subclass to Component for using as a parent for every ajax-enabled component doesn't seem justified, what if ListView (and other possible
 repeaters) would throw UnsupportedOperationException or something like that? Of course, that would mean making Component.setVisible not final...
 Alvar On 5/18/06, Igor Vaynberg  [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote:  i disagree,  wicket's primary usecase is not ajax, but regular rendering. ajax is a very  nice bonus and does not always work as smoothly as we would like.
   now the ajax solution for the listview is quiet easy, put it into a  webmarkupcontainer and update that container instead of the listview via
  ajax   WebMarkupContainer listviewcontainer=new  WebMarkupContainer(listviewcontainer);  ListView listview=new ListView(listview, .
   listviewContainer.add (listview);   span wicket:id=listviewcontainerulli  wicket:id=listviewblah/li/ul/span
   ... target.addComponent(listviewcontainer);   this has the added advantage of hiding the listview's container, be that a
  ul or a table   -Igor On 5/17/06, Bruno Borges  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:one thing we might try is to add an isvisible check to
  internalOnAttach() so that lsitview does not create children if it is not visible. johan what do you think? 
 Igor, the problem is that we need to make possible the call for  setVisible(false), just like any other component... _after_ the component
  was printed out (for example, hidding a list view within an AjaxLink). If this can't be done, ListView must be of other type except
 Component.  
   On 5/17/06, Igor Vaynberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 Sure, I know about that, but the way we code for other
 things like  Label or TextField, it works, right? So, for ListView it should work too.  It's a component just like other.   
  listview is very much different from ordinary components like label and  textfield. listview is a repeater. repeaters have no markup of
 their own and  they produce no markup.   the markup you assign to the listview using wicket:id the listview
  delegates to its children. the markup you see in the output generated by  listview does not come from the listview itself, but from its children that
  render themselves.   one thing we might try is to add

[Wicket-user] Session objects, wicket clean up?

2006-05-17 Thread Bruno Borges
Will Wicket take care of cleaning up the HttpSession sometimes in a while?I mean, we create lots of components, for lots of pages the User is accessing. How Wicket know which objects must be removed and with which frequency it will do that?
How this mechanism works? I'm worry about large projects.Thanks-- Bruno BorgesSumma Technologies


[Wicket-user] ListView.setVisible(false) doesn't work at AjaxFallbackLink

2006-05-17 Thread Bruno Borges
Looks like setting visible false at a ListView instance isn't working properly.The html printed out by wicket is something like this:tr wicket:id=listView

 td ... 
/trtr wicket:id=listView
 td ... 
/trtr wicket:id=listView
 td ... 
/trAnd that's the reason Ajax can't set visible(false) at the listView component.You guys will probably say that I should put my ListView into a Panel (or a fragment maybe? new stuff...) but conceptually the use of ListView and how we should making it invisible at an Ajax request, it's correct I think.
Thanks-- Bruno BorgesSumma Technologies


Re: [Wicket-user] ListView.setVisible(false) doesn't work at AjaxFallbackLink

2006-05-17 Thread Bruno Borges
Sure, I know about that, but the way we code for other things like Label or TextField, it works, right? So, for ListView it should work too. It's a component just like other.Maybe a change at the API so ListView can't be added directly to (Some)MarkupContainer? And require the developer to add it into some parent like Panel or anything else dummy.
I know this would break _all_ projects working with ListView. But I think it's necessary.On 5/17/06, Johan Compagner 
[EMAIL PROTECTED] wrote:as far as i know you need to wrap it in a span or something (no need for a panel)
and target that to set visible and so on. Because in html you need to target one thing (id)On 5/17/06, 
Bruno Borges [EMAIL PROTECTED] wrote:

Looks like setting visible false at a ListView instance isn't working properly.The html printed out by wicket is something like this:tr wicket:id=listView

 td ... 
/trtr wicket:id=listView
 td ... 
/trtr wicket:id=listView
 td ... 
/trAnd that's the reason Ajax can't set visible(false) at the listView component.You guys will probably say that I should put my ListView into a Panel (or a fragment maybe? new stuff...) but conceptually the use of ListView and how we should making it invisible at an Ajax request, it's correct I think.
Thanks-- Bruno BorgesSumma Technologies



-- Bruno BorgesSumma Technologies


Re: [Wicket-user] ListView.setVisible(false) doesn't work at AjaxFallbackLink

2006-05-17 Thread Bruno Borges
Well, that's the problem. ListView generates an incremental id for every row and this is the problem. How to set it invisible through ajax? And if ListView keeps outputting the 'id' attribute different from the 'wicket:id', I think that as a bug. This behavior is different from other components. ListView is considered one single component, with multiple childs (ListItem).
On 5/17/06, Johan Compagner [EMAIL PROTECTED] wrote:
and that parent would be??A markupcontainer? a panel is a markup container.. pretty much all are.I think you mean.. the listview must be added to a container where he is the only child??to require that looks stupid to me. 
Maybe we could some do see it as one object by generating an markup id for every listview html component...listview1, listview2 and then target that as one thing. But that is more a thing for igor i guess.
johanOn 5/17/06, Bruno Borges 
[EMAIL PROTECTED] wrote:
Sure, I know about that, but the way we code for other things like Label or TextField, it works, right? So, for ListView it should work too. It's a component just like other.Maybe a change at the API so ListView can't be added directly to (Some)MarkupContainer? And require the developer to add it into some parent like Panel or anything else dummy.
I know this would break _all_ projects working with ListView. But I think it's necessary.On 5/17/06, 
Johan Compagner 
[EMAIL PROTECTED] wrote:as far as i know you need to wrap it in a span or something (no need for a panel)
and target that to set visible and so on. Because in html you need to target one thing (id)On 5/17/06, 
Bruno Borges [EMAIL PROTECTED] wrote:



Looks like setting visible false at a ListView instance isn't working properly.The html printed out by wicket is something like this:tr wicket:id=listView

 td ... 
/trtr wicket:id=listView
 td ... 
/trtr wicket:id=listView
 td ... 
/trAnd that's the reason Ajax can't set visible(false) at the listView component.You guys will probably say that I should put my ListView into a Panel (or a fragment maybe? new stuff...) but conceptually the use of ListView and how we should making it invisible at an Ajax request, it's correct I think.
Thanks-- Bruno BorgesSumma Technologies



-- Bruno BorgesSumma Technologies



-- Bruno BorgesSumma Technologies


Re: [Wicket-user] Free Maven2 book

2006-05-16 Thread Bruno Borges
everything is fine... just a lazy monday... ;)On 5/15/06, Frank Silbermann [EMAIL PROTECTED]
 wrote:I received an unusually low number of posts this weekend from the Wicket
user group, and none today.Is the mailing list down?If not, have Ibeen dropped from the list?---Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno BorgesSumma Technologies


Re: [Wicket-user] Default Locale not working

2006-05-16 Thread Bruno Borges
Oh... O... my (big... huge) mistake... I haven't noticed that there is (for real) a setLocale(...) in wicket.Session... sorry... :DI think that this ends this thread for good... :D
On 5/12/06, Johan Compagner [EMAIL PROTECTED] wrote:
The locale is FIXED in the session when it is set.It is only initialized when the session is created.so session.setLocale(userLocale) works fine.And i would make my own Session so that you don't have to do setAttribute() but just call: setUser(user)
johanOn 5/12/06, Bruno Borges 
[EMAIL PROTECTED] wrote:
Eelco, the problem I listed in my previous email was that it is kind of impossible to create a Session object passing some User info to ISessionFactory.Let's say we have something like this:class CustomForm ... {
 void onSubmit() { User u = (User) getModelObject(); SomeServiceFromIoC service = ... service.authenticate(u); ... // ok, user is authenticated and now can have access. lets set his session to his Locale
 Locale l = u.getUserLocale(); getSession().setFixedLocale(l); getSession().setAttribute(loggedUser, u); }If the API is going to not provide a public way to override current Session's locale, this kind of code will never be possible. And somewhere in the RequestCycle, this Locale setting must be checked before load any ResourceBundle.
  On 5/12/06, Eelco Hillenius 

[EMAIL PROTECTED] wrote:
So yeah, that's exactly my point. We should not have had that settingin the first place. The fact that you can override getLocale in acustom session object gives means you can employ any scheme you want,including returning a default one (request headers, cookies) while a
user is not logged on, and when the user is logged on, return thatone.AND as I stated, it is just wrong to have that setting as we can'tguarantee it. If you set it in your application but override getLocale
in your session, the whole setting is meaningless.So: I propose to get rid of the setting and put up a FAQ entry in theWIKI or something.EelcoOn 5/12/06, Bruno Borges 


[EMAIL PROTECTED] wrote: Just one question: How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the
 ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything. I think that, the way to set up a default Locale only in the time the
 Session object is created, it's not good, because sometimes the Session must already exist while the User hasn't authenticated yet. If you guys think in code this feature like the way it's been proposed, there will be no way to
 inform the ISessionFactory about some things like User info at logon time. Am I wrong? On 5/11/06, Eelco Hillenius 

[EMAIL PROTECTED]
 wrote: I don't know. That seems to be the original idea of the default locale, though it never worked. Personally, I don't think such an option is that great. I would prefer letting you override the session
 object - you probably will do that anyway when you have to deal with things like users etc, and override the getLocale method. That's way more flexible too, as in that method you can check out the clients
 preferred locales, look up database settings and anything else you might want to do. Having just one way of doing things attracts more to me, and the convenience win is minimal for the corner case of fixing a locale for
 an application. Eelco On 5/11/06, Bruno Borges  [EMAIL PROTECTED]
 wrote:  Wouldn't be useful to have a method that sets a Locale to be used, and if
  this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg  

[EMAIL PROTECTED] wrote:
 no, the default locale is used when we cannot figure out what the user's  local is afaik. since the browser is sending a locale that will be used.
   -Igor   On 5/11/06, Bruno Borges 

[EMAIL PROTECTED] wrote:
  Shouldn't these calls override any locale the user is sending at the  request (from the browser)?   getApplicationSettings().setDefaultLocale(new
  Locale(pt, BR));getResourceSettings().setDefaultLocale(new  Locale(pt, BR));   I still get english messages, that comes from 
Application.properties. My  tought was that, overriding the default locale, I would get portuguese  messages.   Regards   


   --Bruno Borges[EMAIL PROTECTED]
Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4  --  Bruno Borges  


[EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 1.4 ---

 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 


http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user

Fwd: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-16 Thread Bruno Borges
Looks like this last message I sent didn't reach the mailing list. Sending again... :P-- Forwarded message --From: Bruno Borges 
[EMAIL PROTECTED]Date: May 12, 2006 11:34 AMSubject: Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLinkTo: wicket-user@lists.sourceforge.net
I just had an idea: how about require the programmer to inform the current page instance to register all Ajax components he pretends to use, _before_ using them? This way the Ajax component could return to the page everything it's going to need and then the page can load .js, .css, whatever in the head section.
Like this: class SomePage extends WebPage() { constructor {

 registerComponentHead(((Component) new DatePicker()).getContributedHead());

 AjaxLink a = new AjaxLink() { event {
 Panel p = new SomePanelWithDatePicker();
  // replace and add panel 'p' }

 } }And at Component class, we could encapsulate Head in another class, and make that method 
getContributedHead returning Head[].A Head instance must have information about _javascript_s and other resources/meta info, that can only be useful at head section.

I know this sounds a little strange, because the possibility of adding panels through reflection (coming from the database maybe?) but the programmer must be careful anyway. But I think that this is the mostly clean way. :)
What you guys think?On 5/9/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:
well, my concern is to make this automatic.for example:when a component contributes scriptfunc whatever() { }/script through wicket:head that contribution needs to magically merge.

or when a component contributes stylea { color:red; }/style that also has to magically get mergedbut from what i have seen there is no way to do that, you first have to transform these kinds of outputs into a more dynamic version that can then be merged using _javascript_, etc...which is a huge pain.
im not sure how to proceed at all.-IgorOn 5/9/06, 
Rüdiger Schulz [EMAIL PROTECTED] wrote:
Hello Igornot sure how iframes behave here, but it is possible to call_javascript_ functions in one frame, which is defined in another frame,
which then again can do anything with the calling frame. Done this acouple of years ago (when frames where still en vogue ;), but as itturned out, nothing like that will be necessary to solve our problemhere :-)
--greetings from Berlin,Rüdiger SchulzIgor Vaynberg wrote on 04.05.2006 at 19:28: i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no?
 -Igor On 5/4/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: in that case i dont see how you can ever make this work in xhtml
 unless you refresh the entire page.
 A twisted solution using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 


http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list 

Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Bruno BorgesSumma Technologies

-- Bruno BorgesSumma Technologies


[Wicket-user] How Wicket handle missing resources?

2006-05-16 Thread Bruno Borges
How Wicket will handle if I have a html withdiv wicket:id=newsPanelHere comes the News Panel/divBut there's no Panel(newsPanel) object?
I know that with default's configuration, it will throw an exception, but if I setIResourceSettings.useDefaultOnMissingResource(true);What will happen? Will the div still be printed out or will Wicket leave it in there? 
If it will leave it (probably yes, because Wicket's not  going to modify the html structure) how can I prevent to not scramble with my layout? (let's say, a userProfile panel in the front page, and the user is not logged in yet)
Thanks-- Bruno BorgesSumma Technologies


Re: [Wicket-user] Default Locale not working

2006-05-12 Thread Bruno Borges
Eelco, the problem I listed in my previous email was that it is kind of impossible to create a Session object passing some User info to ISessionFactory.Let's say we have something like this:class CustomForm ... {
 void onSubmit() { User u = (User) getModelObject(); SomeServiceFromIoC service = ... service.authenticate(u); ... // ok, user is authenticated and now can have access. lets set his session to his Locale
 Locale l = u.getUserLocale(); getSession().setFixedLocale(l); getSession().setAttribute(loggedUser, u); }If the API is going to not provide a public way to override current Session's locale, this kind of code will never be possible. And somewhere in the RequestCycle, this Locale setting must be checked before load any ResourceBundle.
  On 5/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
So yeah, that's exactly my point. We should not have had that settingin the first place. The fact that you can override getLocale in acustom session object gives means you can employ any scheme you want,including returning a default one (request headers, cookies) while a
user is not logged on, and when the user is logged on, return thatone.AND as I stated, it is just wrong to have that setting as we can'tguarantee it. If you set it in your application but override getLocale
in your session, the whole setting is meaningless.So: I propose to get rid of the setting and put up a FAQ entry in theWIKI or something.EelcoOn 5/12/06, Bruno Borges 
[EMAIL PROTECTED] wrote: Just one question: How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the
 ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything. I think that, the way to set up a default Locale only in the time the
 Session object is created, it's not good, because sometimes the Session must already exist while the User hasn't authenticated yet. If you guys think in code this feature like the way it's been proposed, there will be no way to
 inform the ISessionFactory about some things like User info at logon time. Am I wrong? On 5/11/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote: I don't know. That seems to be the original idea of the default locale, though it never worked. Personally, I don't think such an option is that great. I would prefer letting you override the session
 object - you probably will do that anyway when you have to deal with things like users etc, and override the getLocale method. That's way more flexible too, as in that method you can check out the clients
 preferred locales, look up database settings and anything else you might want to do. Having just one way of doing things attracts more to me, and the convenience win is minimal for the corner case of fixing a locale for
 an application. Eelco On 5/11/06, Bruno Borges  [EMAIL PROTECTED] wrote:  Wouldn't be useful to have a method that sets a Locale to be used, and if
  this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 no, the default locale is used when we cannot figure out what the user's  local is afaik. since the browser is sending a locale that will be used.
   -Igor   On 5/11/06, Bruno Borges [EMAIL PROTECTED] wrote:
  Shouldn't these calls override any locale the user is sending at the  request (from the browser)?   getApplicationSettings().setDefaultLocale(new
  Locale(pt, BR));getResourceSettings().setDefaultLocale(new  Locale(pt, BR));   I still get english messages, that comes from 
Application.properties. My  tought was that, overriding the default locale, I would get portuguese  messages.   Regards   
   --Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4  --  Bruno Borges  
[EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 1.4 --- Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user --
 Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 1.4---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-12 Thread Bruno Borges
I just had an idea: how about require the programmer to inform the current page instance to register all Ajax components he pretends to use, _before_ using them? This way the Ajax component could return to the page everything it's going to need and then the page can load .js, .css, whatever in the head section.
Like this: class SomePage extends WebPage() { constructor {
 registerComponentHead(((Component) new DatePicker()).getContributedHead());
 AjaxLink a = new AjaxLink() { event { Panel p = new SomePanelWithDatePicker();
  // replace and add panel 'p' }
 } }And at Component class, we could encapsulate Head in another class, and make that method 
getContributedHead returning Head[].A Head instance must have information about _javascript_s and other resources/meta info, that can only be useful at head section.
I know this sounds a little strange, because the possibility of adding panels through reflection (coming from the database maybe?) but the programmer must be careful anyway. But I think that this is the mostly clean way. :)
What you guys think?On 5/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
well, my concern is to make this automatic.for example:when a component contributes scriptfunc whatever() { }/script through wicket:head that contribution needs to magically merge.

or when a component contributes stylea { color:red; }/style that also has to magically get mergedbut from what i have seen there is no way to do that, you first have to transform these kinds of outputs into a more dynamic version that can then be merged using _javascript_, etc...which is a huge pain.
im not sure how to proceed at all.-IgorOn 5/9/06, 
Rüdiger Schulz [EMAIL PROTECTED] wrote:
Hello Igornot sure how iframes behave here, but it is possible to call_javascript_ functions in one frame, which is defined in another frame,
which then again can do anything with the calling frame. Done this acouple of years ago (when frames where still en vogue ;), but as itturned out, nothing like that will be necessary to solve our problemhere :-)
--greetings from Berlin,Rüdiger SchulzIgor Vaynberg wrote on 04.05.2006 at 19:28: i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no?
 -Igor On 5/4/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: in that case i dont see how you can ever make this work in xhtml
 unless you refresh the entire page.
 A twisted solution using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 

http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-- Bruno BorgesSumma Technologies


[Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Shouldn't these calls override any locale the user is sending at the request (from the browser)?  getApplicationSettings().setDefaultLocale(new Locale(pt, BR));  getResourceSettings().setDefaultLocale(new Locale(pt, BR));
I still get english messages, that comes from Application.properties. My tought was that, overriding the default locale, I would get portuguese messages.Regards-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Wouldn't be useful to have a method that sets a Locale to be used, and if this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg
 [EMAIL PROTECTED] wrote:
no, the default locale is used when we cannot figure out what the user's local is afaik. since the browser is sending a locale that will be used.-Igor
On 5/11/06, 
Bruno Borges [EMAIL PROTECTED] wrote:

Shouldn't these calls override any locale the user is sending at the request (from the browser)?  getApplicationSettings().setDefaultLocale(new Locale(pt, BR));  getResourceSettings().setDefaultLocale(new Locale(pt, BR));
I still get english messages, that comes from Application.properties. My tought was that, overriding the default locale, I would get portuguese messages.Regards
-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4



-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Maybe the setFixedLocale(Locale); 

could be implemented. Wicket should ignore any locale coming from the user and use the Locale passed here. This setting can be undo by calling setFixedLocale(null);Now... I couldn't find any reference to 
IApplicationSettings.getDefaultLocale() in Wicket's Core. As Eelco said, it's not working anyway... In somewhere that should be checking for the default locale in case no Locale can be getted from the user, the getFixedLocale() could be called too. And if it's not null, well... do what I said before. :)
This is needed because some applications aren't localized, and it's not necessary because some websites are regional (not world wide). And because of this, I must avoid Wicket from displaying messages in English/Japanese/Chinese or whatever computer the user (let's say some brazilian guy accessing my website from a Lan House in India) is using to gain access.
Regards,
On 5/11/06, 
Eelco Hillenius [EMAIL PROTECTED] wrote:

That might be the idea, but doesn't work either. It's always overridenby ServletWebRequest.getLocale, which in case it can't make up thelocale from the request header, defaults to the server's locale -which is not the locale that is set as the default for Wicket.
EelcoOn 5/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, the default locale is used when we cannot figure out what the user's

 local is afaik. since the browser is sending a locale that will be used. -Igor On 5/11/06, Bruno Borges 
[EMAIL PROTECTED]
 wrote:   Shouldn't these calls override any locale the user is sending at the request (from the browser)?   getApplicationSettings().setDefaultLocale(new
 Locale(pt, BR));  getResourceSettings().setDefaultLocale(new Locale(pt, BR));   I still get english messages, that comes from 
Application.properties. My tought was that, overriding the default locale, I would get portuguese messages.   Regards--  Bruno Borges
  [EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 
1.4---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 
1.4



Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Just one question:How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything.
I think that, the way to set up a default Locale only in the time the Session object is created, it's not good, because sometimes the Session must already exist while the User hasn't authenticated yet. If you guys think in code this feature like the way it's been proposed, there will be no way to inform the ISessionFactory about some things like User info at logon time. 
Am I wrong?On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
I don't know. That seems to be the original idea of the defaultlocale, though it never worked. Personally, I don't think such anoption is that great. I would prefer letting you override the sessionobject - you probably will do that anyway when you have to deal with
things like users etc, and override the getLocale method. That's waymore flexible too, as in that method you can check out the clientspreferred locales, look up database settings and anything else youmight want to do.
Having just one way of doing things attracts more to me, and theconvenience win is minimal for the corner case of fixing a locale foran application.EelcoOn 5/11/06, Bruno Borges 
[EMAIL PROTECTED] wrote: Wouldn't be useful to have a method that sets a Locale to be used, and if this options is setted, Wicket should ignore user's locale? On 5/11/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:   no, the default locale is used when we cannot figure out what the user's local is afaik. since the browser is sending a locale that will be used.
-Igor  On 5/11/06, Bruno Borges [EMAIL PROTECTED] wrote:
 Shouldn't these calls override any locale the user is sending at the request (from the browser)? getApplicationSettings().setDefaultLocale(new
 Locale(pt, BR));   getResourceSettings().setDefaultLocale(new Locale(pt, BR)); I still get english messages, that comes from 
Application.properties. My tought was that, overriding the default locale, I would get portuguese messages. Regards   --
   Bruno Borges   [EMAIL PROTECTED]   Sun Certified Java Programmer for 1.4   Sun Certified Web Component Developer for 
1.4   -- Bruno Borges [EMAIL PROTECTED] Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 
1.4---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] Re: [Wicket-user] 优惠代开发票!

2006-05-11 Thread Bruno Borges
WTF?Please, speak english... :POn 5/11/06, 腾达实业有限公司 [EMAIL PROTECTED] wrote:
贵公司负责人(经理/财务)您好:腾达税务代理(深圳)有限公司为贵单位合理合法避税,节省贵单位经营成本和开支的原则,在双方互惠互利的基础上对外代开发票.代开范围:(商品普通销售、广告、运输发票、其它服务、租赁、建筑安装、餐饮定额及其他发票等)费率仅收(1%-1.5%左右),增值发票(6%左右),(不再另外收费)。所开票据均为各相关企业在税局领取,可在网上查询和验证;如有需要敬请来电洽商详细合作。
欢迎来电洽谈...如有打扰,请见谅!顺祝商祺!!! 深圳腾达实业有限公司
联 系 人:张先生详情请电:(0)13927434328---Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- 
Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] can feedback panel be generalized?

2006-05-10 Thread Bruno Borges
I've just coded my custom version of FeedbackPanel and it works fine. I have a subclass of FeedbackPanel and a HTML file that is kind of copy of the FeedbackPanel.html from Wicket's Core.Then I added new labels and CSS and done. Now I have a feedbackPanel that shows over on top of all the webpage with a Close button that actually hiddes the div. 
Maybe is something like this you are looking for?On 5/10/06, Ittay Dror [EMAIL PROTECTED] wrote:
the FeedbackPanel component has a lot of non-trivial functionality, that makes it hard to write my own customized version of it. especially, adding other components, or controlling existing ones is hackish (i have to use 
Component.get() and visitChildren)maybe have FeedbackPanel use a FeedbackComponent, created through newFeedbackComponent, provided by subclasses?--===Ittay DrorChief architect, openQRM TL,
RD, Qlusters Inc.[EMAIL PROTECTED]+972-3-6081994 Fax: +972-3-6081841http://www.openQRM.org- Keeps your Data-Center Up and Running
---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] How to overrite Application.properties properly?

2006-05-09 Thread Bruno Borges
I found the problem. BIOS... (In portuguese, means: Stupid Ignorant Operating the System)... :)On 5/9/06, Martijn Dashorst 
[EMAIL PROTECTED] wrote:
foo/pkg/ MyWebApplication.properties MyWebApplication.javafoo/pkg/pages FooPage.properties FooPage.html
 FooPage.javaShould work. Can you see if you can reproduce in a wicket quickstart?Martijn
On 5/9/06, Bruno Borges 
[EMAIL PROTECTED] wrote:I have changed the TypeValidator message, in several ways:
foo/pkg/ MyWebApplication.properties MyWebApplication.java Application.propertiesfoo/pkg/pages FooPage.properties FooPage.html
 FooPage.javaNone of these have worked. :/-- Bruno Borges

[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4

-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org

-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


[Wicket-user] What should be used: PatternValidator or MaskConverter/MaskFormatter ?

2006-05-09 Thread Bruno Borges
What's the difference between these two components and where they fit better?-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] Localization

2006-05-09 Thread Bruno Borges
 component. Thinking ... That is not your question, isn't it? Like
 Application.properties is the last resort for all messages, you ask for one per java package, right? So,
 in addition to the my.pkg.MyPanel.properties it should look in my/pkg/Wicket.properties as well (may be
 Wicket.properties is not the best name).That's what I want to do and it would be a nice
 feature if such alookup strategy could be added by just setting an option and defininga name for the property file. I tried to do it quick
 myself butstopped after finding out that the property file name is quite tightlycoupled to some class name for the moment...
It is fairly easy to add. Please see Settings.addStringResourceLoader,
   Application.getResourceStreamLocator and   CompoundResourceStreamLocator.java Let me know if you need any more help
 Juergen  Regards,Ralf
  ---Using Tomcat but need to do more? Need to support web
 services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo   
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___Wicket-user mailing list
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: 
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user   
   ---   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job easier   Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo   
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642   ___   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net
 mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user  
   ---
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your
 job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
  http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user ---
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] MaskConverter: isn't a better way?

2006-05-09 Thread Bruno Borges
Sure... I got the message. :)On 5/9/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Yep. Bruno, It's trivial to make your own component classes - probablytextfields, no? - that have an API that's more to your taste. It's one
of Wicket's main ideas to make creating custom components easy, so whynot make use of that?EelcoOn 5/9/06, Johan Compagner [EMAIL PROTECTED] wrote:
 because there is only one converter and validators must be stored in a list. This is all to keep the internal state of a component as clean as possible. You don't have to create an anon class. You can return there a normal class
 or a inner class if you want. johan On 5/9/06, Bruno Borges [EMAIL PROTECTED] wrote:   I really don't like the idea of having too many properties that must be
 get through anonymous classes.   Why there's no setConverter(IConverter c) just like add(IValidator v) returning the object itself?   see ya
 On 5/9/06, Johan Compagner  [EMAIL PROTECTED] wrote: currently not. What could be better in your eyes?
 We will overhaul the converter interface in the next version so that it should be simpler.   johan
   On 5/9/06, Bruno Borges [EMAIL PROTECTED] wrote:   This is the only way I know (better: I learned from
 Wiki/Docs/Examples) on how to use MaskConverter:  TextField zipCode = new TextField(zipCode) {   public IConverter getConverter() {
   MaskFormatter zipFormat = null;try {   zipFormat = new MaskFormatter(#-###); // Brazillian format
} catch(Exception e) {} // never throws   return new UncheckedMaskConverter(zipFormat);}};   
Isn't a better way to to this?   --Bruno Borges   
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4  
   --  Bruno Borges  [EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 
1.4---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] mound(/, ...) throws Exception, why?

2006-05-08 Thread Bruno Borges
Why can't I mount my pages so they all can be bookmarkable from / ?Just a note: the WicketServlet is under url-pattern = /site, so my pages would be bookmarkable like /site/Index.Regards,
-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] mound(/, ...) throws Exception, why?

2006-05-08 Thread Bruno Borges
Yeah, it's /site/*, I just cutted off the unnecessary info. Sorry... :DSo, how about something like:mountByClassName(String underPath, PackageName pkg);this would be the same as loop through all classes located under the 
pkg and create a mounted path with the same name as the class.I know this can be done outside Wicket's core API. Just calling some of the already built-in methods. But it would be nice to have a shortcut.
Regards,On 5/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
you cannot mount onto / because that is reserved for the homepage, so in a way homepage is always mounted on /if you want to mount something onto /site/index then you need to mount on /index not /
mount(/index, 
Index.class);btw, your url mapping should be /site/* not just /site-Igor
On 5/8/06, Bruno Borges 
[EMAIL PROTECTED] wrote:Why can't I mount my pages so they all can be bookmarkable from / ?
Just a note: the WicketServlet is under url-pattern = /site, so my pages would be bookmarkable like /site/Index.Regards,
-- Bruno Borges[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4



-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] mound(/, ...) throws Exception, why?

2006-05-08 Thread Bruno Borges
And is exactly that. it throws an exception saying that the path can't be /. I saw the source and there's an If statement checking for this. :)On 5/8/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:
if you are talking about mounting a package on / then you should be able to do that with something like mount(/, PackageName.for(Index.class));then if you have an Index.class
 page in that package it should be accessible from /site/Index
at least i remember i wrote this functionality in because it was requested before. maybe it got lost with some of the refactorings we did. if so, then we should fix it.
-Igor
On 5/8/06, Bruno Borges [EMAIL PROTECTED] wrote:

Yeah, it's /site/*, I just cutted off the unnecessary info. Sorry... :DSo, how about something like:mountByClassName(String underPath, PackageName pkg);this would be the same as loop through all classes located under the 
pkg and create a mounted path with the same name as the class.I know this can be done outside Wicket's core API. Just calling some of the already built-in methods. But it would be nice to have a shortcut.
Regards,On 5/8/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
you cannot mount onto / because that is reserved for the homepage, so in a way homepage is always mounted on /if you want to mount something onto /site/index then you need to mount on /index not /
mount(/index, 
Index.class);btw, your url mapping should be /site/* not just /site-Igor
On 5/8/06, Bruno Borges 
[EMAIL PROTECTED] wrote:Why can't I mount my pages so they all can be bookmarkable from / ?
Just a note: the WicketServlet is under url-pattern = /site, so my pages would be bookmarkable like /site/Index.Regards,
-- Bruno Borges[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4



-- Bruno Borges[EMAIL PROTECTED]

Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4



-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] changing images with Ajax

2006-05-08 Thread Bruno Borges
This could go to Wicket Core. But before this happens, one note:The 'rand' parameter should be renamed to something like .wicket_rand. 'rand' is too simple... :)Regardsm
On 5/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Fine with me. If something thinks of a nice API.EelcoOn 5/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote: This seems common enough, shouldn't we add this to core (of course, only
 when it works :-))? Martijn On 5/8/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:   try this:
   Image image = new Image(image, resource) { protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); String src=
"">  src="">  tag.set(src, src);  };   if it works you can encapsulate it into a NonCachingImage or something
-Igor  On 5/8/06, Potje rode kool  [EMAIL PROTECTED] wrote:
 How are you adding those parameters the the image URL?   In html I have an image tag like this: img wicket:id=image/
 and in code: Resource resource =    Image image = new Image(image, resource); I also tried:
 Image image = new Image(image, new Model(/images/sunshine.png)); But than it tries to find the images in the package (as package
 resource). How can I simple create an Image object which loads the image relative from the webcontext root, and how do I add a random parameter so that the browser
   will allways reload the image. Thanks,   Evert   2006/5/7, Anatol Pomozov  
[EMAIL PROTECTED]: I usually do such thing   /path_to_img.png?random_number   
so example image path is /images/logo.png?32342342342 or /images/logo.png?rand=32342342342         On 5/7/06, Bruno Borges 
[EMAIL PROTECTED] wrote: Make random URLs for the image. You can do that simply adding dummy parameters, like /image.ext?foo=bar1, bar2, bar3... etc. The browser cache
 resources per URL. I think this will work. See ya
 On 5/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   well, if the browser ignores that then you should change the url.
-Igor
  On 5/7/06, Potje rode kool  [EMAIL PROTECTED] wrote: Yes, its a caching problem, when I disable caching in Firefox
 (doing this with the web developer toolbar) it works fine.   How do I add those headers for the images I want to disable caching for.I tried to set some headers on my WebResource subclass
   I use like this: response.setDateHeader(Expires, System.currentTimeMillis());
   response.setHeader(Cache-Control, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0);  
   But that doesn't seems to work. Thanks in advance,   Evert  
   2006/5/7, Igor Vaynberg  [EMAIL PROTECTED]:
 are you updating img's src attribute in the ajax call? or is the image streamed from somewhere and reflects a property you changed with
 ajax?   the first should work   the lettter might not unless the url changes - because the
 browser would have the cached version and no reason to reload it. so you either have to update the url and add a rand=randomnumber parameter to force the browser to reload the image or add no-cache no-store headers when
 you are streaming the image.  -Igor  
  On 5/6/06, Potje rode kool [EMAIL PROTECTED]
 wrote: Hi, I am trying to change an image after an AjaxLink is clicked
 but I can't get it working. The images are on a Panel, when I click on the AjaxLink I create a new Panel and replace the old one (by calling getPage().replace(Component) ).
 I also have put an Label on the Panel and the Label gets updated when I click on the AjaxLink, but not the images.
 Do I have to do something extra to let images update or does Wicket doesn't support updating images by Ajax? Thanks in advance.
 Evert  
    
     -- Bruno Borges [EMAIL PROTECTED]
 Sun Certified Java Programmer for 1.4 Sun Certified Web Component Developer for 1.4
--anatol ( http://pomozov.info)
 -- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_! -- http://wicketframework.org---
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4S

[Wicket-user] MaskConverter: isn't a better way?

2006-05-08 Thread Bruno Borges
This is the only way I know (better: I learned from Wiki/Docs/Examples) on how to use MaskConverter:TextField zipCode = new TextField(zipCode) {
public IConverter getConverter() {MaskFormatter zipFormat = null;try {zipFormat = new MaskFormatter(#-###); // Brazillian format
} catch(Exception e) {} // never throwsreturn new UncheckedMaskConverter(zipFormat);}};Isn't a better way to to this? -- 
Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] How to overrite Application.properties properly?

2006-05-08 Thread Bruno Borges
I have changed the TypeValidator message, in several ways:foo/pkg/ MyWebApplication.properties MyWebApplication.java Application.propertiesfoo/pkg/pages FooPage.properties FooPage.html
 FooPage.javaNone of these have worked. :/-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] changing images with Ajax

2006-05-07 Thread Bruno Borges
Make random URLs for the image. You can do that simply adding dummy parameters, like /image.ext?foo=bar1, bar2, bar3... etc. The browser cache resources per URL. I think this will work.See ya
On 5/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
well, if the browser ignores that then you should change the url.-Igor
On 5/7/06, Potje rode kool 
[EMAIL PROTECTED] wrote:Yes, its a caching problem, when I disable caching in Firefox (doing this with the web developer toolbar) it works fine.
How do I add those headers for the images I want to disable caching for. I tried to set some headers on my WebResource subclass
I use like this:  response.setDateHeader(Expires, System.currentTimeMillis());  response.setHeader(Cache-Control, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0);
But that doesn't seems to work.Thanks in advance,Evert2006/5/7, Igor Vaynberg 

[EMAIL PROTECTED]:

are you updating img's src attribute in the ajax call? or is the image streamed from somewhere and reflects a property you changed with ajax?
the first should workthe lettter might not unless the url changes - because the browser would have the cached version and no reason to reload it. so you either have to update the url and add a rand=randomnumber parameter to force the browser to reload the image or add no-cache no-store headers when you are streaming the image.
-IgorOn 5/6/06, 
Potje rode kool [EMAIL PROTECTED] wrote:



Hi,I am trying to change an image after an AjaxLink is clicked but I can't get it working.The images are on a Panel, when I click on the AjaxLink I create a new Panel and replace the old one (by calling getPage().replace(Component) ).
I also have put an Label on the Panel and the Label gets updated when I click on the AjaxLink, but not the images.Do I have to do something extra to let images update or does Wicket doesn't support updating images by Ajax?
Thanks in advance.Evert







-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


[Wicket-user] Small fix to javadoc

2006-05-07 Thread Bruno Borges
 /** * Mark each form component on this form invalid. */ protected final void markFormComponentsValid();
Change from invalid to valid. wicket.markup.html.form.Form classWhere is the best place to put this kind of information? (I'm sure wicket-user isn't).See ya!-- 
Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] Components Label for FeedbackMessage

2006-05-07 Thread Bruno Borges
The feedbackPanel is using IDs at the rendered html to display error messages from the form validation. How do I map labels to fields, and so FeedbackPanel can automatically catch this information to use the Labels, not IDs ?
And how should I proceed if I want to clear all the messages and put only one? Instead of letting FeedbackPanel display one message for each field in my form, I want to put a message like Please fill all required fields.. But I don't wanna check each field manually in the validate() method.
Regards,-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] dynamic html controls

2006-05-07 Thread Bruno Borges
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user












-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] Components Label for FeedbackMessage

2006-05-07 Thread Bruno Borges
you can call FormComponent.setLabel(IModel label) on the form components and then use ${label} var in the validator messages.
The problem here is that I already have label for="" input ... id=idin my html, and all my messages are in html. I'm using i18n directly there. (Page_en.html, Page_br.html, etc...).
Isn't a better way to do this?This is tricky because this is not the usecase the feedbackpanel was
designed for. the panel doesnt know about validators that failed, only
about the messages. i guess if you wanted to you can check for
required in the message?
I know I can iterate through all messages that are going to be displayed at the FeedbackPanelprotected void onError() {FeedbackMessages msgs = getFeedbackMessages();
... }If I look for 'required' in the message, how about i18n? :DAnd yes, the usecase is kind of common. Let's say the form has 20 fields, all of them are required. Some of them have mask, others are URLs, E-mails, Dates, etc. I don't wanna display one message for each field because it's required and other messages because of some validation error.
Wouldn't be better display only one message saying: Dude, please fill all required fields!Isn't some way to remove messages, depending on the key of that message? This way, it would be easy to clear messages that were loaded from 
RequiredValidator key. On 5/7/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
On 5/7/06, Bruno Borges [EMAIL PROTECTED]
 wrote:
The feedbackPanel is using IDs at the rendered html to display error messages from the form validation. How do I map labels to fields, and so FeedbackPanel can automatically catch this information to use the Labels, not IDs ?
you can call FormComponent.setLabel(IModel label) on the form components and then use ${label} var in the validator messages.

And how should I proceed if I want to clear all the messages and put only one? Instead of letting FeedbackPanel display one message for each field in my form, I want to put a message like Please fill all required fields.. But I don't wanna check each field manually in the validate() method.
This is tricky because this is not the usecase the feedbackpanel was designed for. the panel doesnt know about validators that failed, only about the messages. i guess if you wanted to you can check for required in the message?
-Igor

-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] Components Label for FeedbackMessage

2006-05-07 Thread Bruno Borges
Wow, great Igor.Thanks. On 5/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:



Wouldn't be better display only one message saying: Dude, please fill all required fields!

ok, i just made available boolean FormComponent.checkRequired()this will return false if the component's validation of required check failed. this lets you filter out all the pesky required messages from the feedbackpanel
-Igor

-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


[Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
Oh, one mistake in the code I sent.- The id for newUserLink I'm using is newUser;
Everything works: AjaxLink replacing the div, the panel, submit, etc. Only the datePicker JS isn't working!Regards,On 5/4/06, 
Bruno Borges [EMAIL PROTECTED] wrote:
I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink.The DatePicker icon doesn't work. The calendar doesn't shows up. Is there any incompatibility between loading panels with Ajax and DatePicker within?
My code looks like this:class Index extends WebPage {constructor {final Label welcome = new Label(bodyPanel, Welcome);
add(welcome);AjaxLink goHome = new AjaxLink(home) {... {getPage().replace(welcome);

target.addComponent(welcome);}};AjaxLink newUserLink = AjaxLink(home) {
... {UserFormPanel panel = new UserFormPanel(bodyPanel);
getPage().replace(panel);

target.addComponent(panel);

}

};add(newUserLink);add(goHome);}}

class UserFormPanel extends Panel {constructor {add(new UserForm(userForm));
}}class UserForm extends Form {

constructor {... // other basic fields like 'username', 'email', 'password'// Date field fieldBirthday
RequiredTextField fieldBirthday = new RequiredTextField(birthday, Date.class);fieldBirthday .add(DateValidator.maximum(Calendar.getInstance().getTime()));add(fieldBirthday);// DatePicker for fieldBirthday
DatePickerSettings settings = new DatePickerSettings();settings.setIfFormat(%d/%m/%Y);settings.setWeekNumbers(false);DatePicker datePicker = new DatePicker(datePicker, fieldBirthday , settings);
add(datePicker);}}I can say for sure: the datepicker component was working perfectly before opening the panel through AjaxLink (actually, UserFormPanel was UserFormPage before this).
Am I missing something here?Regards,-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4

-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


[Wicket-user] Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink.The DatePicker icon doesn't work. The calendar doesn't shows up. Is there any incompatibility between loading panels with Ajax and DatePicker within?
My code looks like this:class Index extends WebPage {constructor {final Label welcome = new Label(bodyPanel, Welcome);
add(welcome);AjaxLink goHome = new AjaxLink(home) {... {getPage().replace(welcome);
target.addComponent(welcome);}};AjaxLink newUserLink = AjaxLink(home) {
... {UserFormPanel panel = new UserFormPanel(bodyPanel);
getPage().replace(panel);

target.addComponent(panel);

}

};add(newUserLink);add(goHome);}}
class UserFormPanel extends Panel {constructor {add(new UserForm(userForm));
}}class UserForm extends Form {
constructor {... // other basic fields like 'username', 'email', 'password'// Date field fieldBirthday
RequiredTextField fieldBirthday = new RequiredTextField(birthday, Date.class);fieldBirthday .add(DateValidator.maximum(Calendar.getInstance().getTime()));add(fieldBirthday);// DatePicker for fieldBirthday
DatePickerSettings settings = new DatePickerSettings();settings.setIfFormat(%d/%m/%Y);settings.setWeekNumbers(false);DatePicker datePicker = new DatePicker(datePicker, fieldBirthday , settings);
add(datePicker);}}I can say for sure: the datepicker component was working perfectly before opening the panel through AjaxLink (actually, UserFormPanel was UserFormPage before this).
Am I missing something here?Regards,-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
Igor, I'm not sure if browsers support the update head thing (probably not), but one first step solution is to notify the component that it is been added through Ajax, so the component must generate a load function and return that function name to the Ajax call, so the Ajax JS can call that function postprocessing.
Of course, the main problem still continues: how to add the .js file of DatePicker/anything else, to the html page dynamically. On 5/4/06, Igor Vaynberg
 [EMAIL PROTECTED] wrote:
yes, there is a problem indeed with components that need head contribution and are added via ajax. the problem is that when the component is added via ajax its header contribution is ingored because the head section is not updated. so in case of the datepicker the js it needs is never added to the page.
im not really sure what the good solution for this is. maybe we can update the head, but do browsers take that into account? will a script tag added to head via outerhtml replacement be processed by the browser? can you even use outer/innerHtml on elements in the head region of the page?
any thoughts/ideas are welcome.-igor
On 5/3/06, Bruno Borges [EMAIL PROTECTED]
 wrote:Oh, one mistake in the code I sent.- The 
id for newUserLink I'm using is newUser;
Everything works: AjaxLink replacing the div, the panel, submit, etc. Only the datePicker JS isn't working!Regards,
On 5/4/06, 
Bruno Borges [EMAIL PROTECTED] wrote:


I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink.The DatePicker icon doesn't work. The calendar doesn't shows up. Is there any incompatibility between loading panels with Ajax and DatePicker within?
My code looks like this:class Index extends WebPage {constructor {final Label welcome = new Label(bodyPanel, Welcome);
add(welcome);AjaxLink goHome = new AjaxLink(home) {... {getPage().replace(welcome);



target.addComponent(welcome);}};AjaxLink newUserLink = AjaxLink(home) {
... {UserFormPanel panel = new UserFormPanel(bodyPanel);
getPage().replace(panel);

target.addComponent(panel);

}

};add(newUserLink);add(goHome);}}



class UserFormPanel extends Panel {constructor {add(new UserForm(userForm));
}}class UserForm extends Form {



constructor {... // other basic fields like 'username', 'email', 'password'// Date field fieldBirthday
RequiredTextField fieldBirthday = new RequiredTextField(birthday, Date.class);fieldBirthday .add(DateValidator.maximum(Calendar.getInstance().getTime()));add(fieldBirthday);// DatePicker for fieldBirthday
DatePickerSettings settings = new DatePickerSettings();settings.setIfFormat(%d/%m/%Y);settings.setWeekNumbers(false);DatePicker datePicker = new DatePicker(datePicker, fieldBirthday , settings);
add(datePicker);}}I can say for sure: the datepicker component was working perfectly before opening the panel through AjaxLink (actually, UserFormPanel was UserFormPage before this).
Am I missing something here?Regards,-- Bruno Borges


[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4

-- Bruno Borges[EMAIL PROTECTED]

Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4



-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


[Wicket-user] Initial date in DatePicker component

2006-05-04 Thread Bruno Borges
How to set up an initial Date in a DatePicker object?I want to use DatePicker for birthday property, but I want it to load with a date 10 years before current year. How can I achieve this?Regards,-- 
Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Bruno Borges
Isn't this code correct?class UserForm extends Form {User user = new User(); // POJO Bean
constructor {...BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(user);add(new TextField(name, model));
add(new TextField(email, model)); // Can I do this? Use the same model object for different properties?}on submit {String name = user.getName
();// Why name is still null ?}
}
Am I missing something here? Where in the docs has some reference for Property Models ?-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Bruno Borges
Ops... sorry Igor.But one question: the Javadoc says that the BoundCompoundPropertyModel uses the name (I understand here as the id) of a component as the property name it should use to set value on model.
So, I understand as: add(new TextField(name, new BoundCompountPropertyModel(userBean)));or...add(new TextField(name, new CompountPropertyModel(userBean, name)));
Am I right?On 5/4/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:what you want is a CompoundPropertyModel not the bound variant. 
there is a searchbox on our wiki :)http://www.wicket-wiki.org.uk/wiki/index.php/Models
-IgorOn 5/4/06, 
Bruno Borges [EMAIL PROTECTED] wrote:

Isn't this code correct?class UserForm extends Form {

User user = new User(); // POJO Bean
constructor {...BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(user);add(new TextField(name, model));
add(new TextField(email, model)); // Can I do this? Use the same model object for different properties?}on submit {String name = user.getName


();// Why name is still null ?}


}


Am I missing something here? Where in the docs has some reference for Property Models ?

-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4



-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 
1.4


Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
Looks like there's no problem adding styles. http://www.dynamicdrive.com/forums/archive/index.php/t-3459.htmlThis URL is not quite what it should be for, but demonstrates how CSS's can be changed without reloading a page. And I'm sure the same way new .js files can be added to a Head section dynamically, css can be either. :)
On 5/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
basically what we are talking about is somehow capturing the componnet's header contribution and writing it out.so take datepicker, datepicker.html has a wicket:head section. what we need to do is to somehow get that portion as a charsequence so that the ajax request target can dump it as part of component's markup. we also need to capture the head output from behaviors. i dont know how feasible it all is.
this might solve _javascript_, but what about link tags for css? are those legal outside the head? and will browsers pick them up if we write them out via outerhtml?
-Igor
On 5/4/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:

Not sure I understand what needs to be done. I guess I'll wait untiltomorrow until the that is how the output must look like question issolved.JuergenOn 5/4/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote: i guess in this case we need to capture the head output of the component during ajax render and dump it into the markup before the component. Juergen are you reading with us? do you think this is feasible?
 -Igor On 5/4/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
   right, and that is the main problem to solve. is a script tag
   legal in the middle of html? because maybe we can capture the head   output and just insert it into html   script Tags in the middle of HTML are working in all browsers I ever
  had to use this. I'm not 100% sure if it's legal, but I think the main  reason for putting _javascript_ in the head is, that it is definitly  loaded before any markup is using it. 
-Igor On 5/4/06, Bruno Borges  
[EMAIL PROTECTED] wrote:   Igor, I'm not sure if browsers support the update head thing
   (probably not), but one first step solution is to notify the   component that it is been added through Ajax, so the component must   generate a load function and return that function name to the Ajax
   call, so the Ajax JS can call that function postprocessing.Of course, the main problem still continues: how to add the .js   file of DatePicker/anything else, to the html page dynamically.
 On 5/4/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   yes, there is a problem indeed with components that need head
   contribution and are added via ajax. the problem is that when the   component is added via ajax its header contribution is ingored   because the head section is not updated. so in case of the
   datepicker the js it needs is never added to the page.im not really sure what the good solution for this is. maybe we   can update the head, but do browsers take that into account? will a
   script tag added to head via outerhtml replacement be processed by   the browser? can you even use outer/innerHtml on elements in the   head region of the page? 
   any thoughts/ideas are welcome. -igor  On 5/3/06, Bruno Borges 

[EMAIL PROTECTED] wrote:   Oh, one mistake in the code I sent.- The id for newUserLink I'm using is newUser;Everything works: AjaxLink replacing the div, the panel, submit,
   etc. Only the datePicker JS isn't working!Regards,  On 5/4/06, Bruno Borges  

[EMAIL PROTECTED] wrote:   I'm trying to load a Form Panel's child, and this panel is been loaded through an AjaxLink.The DatePicker icon doesn't work. The calendar doesn't shows up.
   Is there any incompatibility between loading panels with Ajax and   DatePicker within?My code looks like this:class Index extends WebPage {
   constructor {   final Label welcome = new Label(bodyPanel, Welcome);   add(welcome);AjaxLink goHome = new AjaxLink(home) {
   ... {   getPage().replace(welcome);target.addComponent(welcome);}};AjaxLink newUserLink = AjaxLink(home) {
   ... {   UserFormPanel panel = new UserFormPanel(bodyPanel);getPage().replace(panel);target.addComponent(panel);
}};add(newUserLink);   add(goHome);} }
class UserFormPanel extends Panel {   constructor {   add(new UserForm(userForm));}}
class UserForm extends Form {   constructor {   ... // other basic fields like 'username', 'email', 'password' // Date field fieldBirthday
   RequiredTextField fieldBirthday = new   RequiredTextField(birthday, Date.class);   fieldBirthday   .add(DateValidator.maximum(Calendar.getInstance

().getTime()));   add(fieldBirthday);// DatePicker for fieldBirthday   DatePickerSettings settings = new DatePickerSettings();   
settings.setIfFormat(%d/%m/%Y);   settings.setWeekNumbers(false);   DatePicker datePicker = new DatePicker(datePicker, fieldBirthday , settings);   add(datePicker);
}} I can say for sure: the datepicker component

Re: [Wicket-user] proposal: internationalization project

2006-04-25 Thread Bruno Borges
Just tell me the directions and let me do pt_BR. :)Regards,Bruno BorgesOn 4/24/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:On 4/23/06, Iman Rahmatizadeh 
[EMAIL PROTECTED] wrote: I'm ready for Persian/Farsi (fa_IR). Just asking, would it be a good idea to let wicket automatically set the page direction (ltr or rtl) based on the locale ?
I have no experience with that, so I wouldn't know. Which is exactlywhy we should startup such a project :)Eelco Iman ---
 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Bruno Borges
I got it. From the Wicket-Example. :)Thank youOn 3/29/06, Juergen Donnerstag [EMAIL PROTECTED]
 wrote:not that I can think ofJuergenOn 3/29/06, Vincent Jenks 
[EMAIL PROTECTED] wrote: Is there a performance hit for customizing the location of the html files? I thought I had read that somewhere in the wiki, once upon a time.
 On 3/29/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: please see wicket-examplecustomresourceloading
 Juergen On 3/29/06, Bruno Borges [EMAIL PROTECTED] wrote:  I don't like the way wicket put together Java classes with HTML resources
  (in the same package structure).   Even if I move the structure to another path, like WEB-INF/html, I must  reproduce all the package tree, and then add a resource folder in my
 init()  WebApplication subclass.   I was wondering if is it possible to implement a feature where we can map a  hole package tree to a simple directory, and from there, respect the sub
  packages. Please follow my toughs:   This is how I'm doing right now:   src/com/foo/view/pages/IndexPage.java  src/com/foo/view/panels/BannerPanel.java
  webapp/WEB-INF/html/com/foo/view/panels/BannerPanel.html  webapp/WEB-INF/html/com/foo/view/pages/IndexPage.html   And this is how I'd like to do without hacks and Java code:
  src/com/foo/view/pages/IndexPage.java  src/com/foo/view/panels/BannerPanel.java  webapp/WEB-INF/html/panels/BannerPanel.html webapp/WEB-INF/html/pages/IndexPage.html
   This means that the package com.foo.view is mapped to the resource  directory WEB-INF/html.   This sounds a good idea, specially for huge projects that will need to
  modularize their interfaces.   src/com/foo/moduleA/view/[pages/panels]/[Classes]--  webapp/WEB-INF/html/moduleA/[pages/panels]/[Htmls]   This reduce the path size and our designers will love it. :)
   This can maybe be implemented like this:   getResourceSettings().addResourceMappingPackage(com.foo.moduleA,  /WEB-INF/html/moduleA);
  And all resources beneath from html/moduleA will need to follow the rest of  the package structure.   I like wicket, because it gives designers the possibility to don't worry
  about java taglibs, %= hell code % and other things. Of course, I like it  because the rest of its features :o)   But out-of-the-box, it's not easy to say: Designers, access the source
  folder and edit only the html files and don't mess up with the directories.  They must have some independence :)   Regards,   --  Bruno Borges
  [EMAIL PROTECTED]  Sun Certified Java Programmer for 1.4  Sun Certified Web Component Developer for 1.4 
 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Bruno Borges
[EMAIL PROTECTED]Sun Certified Java Programmer for 1.4Sun Certified Web Component Developer for 1.4


[Wicket-user] Links opening Borders in an AJAX-like

2006-03-29 Thread Bruno Borges
Is it possible to build a Border (i.e.: NavomaticBorder) that opens the pages in the contentBody div using Ajax?Some Ajax component will process the page, and put the content into the div replacing or changing the visibility (cache-mode). Is there any Wicket Component that does this ?
In the Navomatic example, I didn't want to update the entirely page.Regards,-- Bruno Borges[EMAIL PROTECTED]Sun Certified Java Programmer for 
1.4Sun Certified Web Component Developer for 1.4


Re: [Wicket-user] Images, Flashs, Javascripts, CSSs and other resources

2006-03-20 Thread Bruno Borges
We could do that, only if all the web pages stay in the same package, but imagine that in a modularized project or even with sub-modules!So, how about some code like this:
class IndexPage extends WebPage { public String getResourcePage() {
 return Index.html; }
}And to complete: class PetShopApp extends WebApplication {
 public String getPagesRootPath() { return /WEB-INF/html/; }}
Regards,Bruno Borges
Date: Mon, 20 Mar 2006 08:56:30 +0100From: Dirk Markert [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and other resourcesReply-To: wicket-user@lists.sourceforge.net--=_Part_9855_22859891.1142841390656
Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableContent-Disposition: inlineWhy don't you includewicket:remove base href="" href="file:///C:/Docs%20and%20Settings/you/your-project/src/webap=">
file:///C:/Docs%20and%20Settings/you/your-project/src/webap=p///wicket:removein your html head.Dirk2006/3/18, Thomas Singer [EMAIL PROTECTED]
: Hi Bruno, I'm with you. Please take a look at issue 1448195 in the wicket tracker ( 
http://sourceforge.net/tracker/index.php?func=3Ddetailaid=3D1448195grou=p_id=3D119783atid=3D684978 ). -- Best regards, Thomas Singer Bruno Borges schrieb:
  In the case of static resources, the problem is that, as you show, if m=y  web designer opens the Index.html he'll not see the images in his  WYSIWYG editor.   Thanks.
   From: Martijn Dashorst [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
  To: wicket-user@lists.sourceforge.net  mailto:wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and  other resources  Reply-To: wicket-user@lists.sourceforge.net
  mailto:wicket-user@lists.sourceforge.net   There are several possibilities here.   Dynamic approach
  Needed in the following cases: - resource needs to be generated - resource comes from external, non-web system (database, etc) - resource must be filtered (component id's subsitution, etc)
 - resource must be packaged with your component   Static approach  Needed in the following cases: - absolute performance requirements - static resources served by
  webserver, not servlet - static files, no special requirement for dynamic content - ?   In the dynamic approach the resources need either to be registered
  at load  time (this will change I think), or generated on the fly as needed.  Resourc=3D  e  source files should be available on the classpath, but need not be
  (provide  your own resolver).   In the static approach, you put the files in the webroot and thus  have them  available to link from your pages.
   com.foo.Index.html  html  head  style src="" type=3D3Dtext/css/style
  script src="">  type=3D3Dtext/_javascript_/script  /head  body  /body
  /html   and directories:   src/webapp/style/style.css  src/webapp/prototype/prototype.js  src/webapp/WEB-INF/web.xml
  src/main/java/com/foo/Index.html  src/main/java/com/foo/Index.java   Not complete, but a start.   Martijn   On 3/17/06, Bruno Borges 
[EMAIL PROTECTED]  mailto:[EMAIL PROTECTED] wrote:   I've seen some threads in the mailing-list archive, and for I
  understand,  there's no common way to deal with resources like those in the  subject.   Could you guys please list what's the best approaches to deal
  with images=3D  ,  so programmers and designers can work together without any  problem? I wan=3D  na  see developers coding the html files, and designers specifying
  images in  these pages, so the images can be displayed in the same way at  developmen=3D  t  time (WYSIWYG HTML Editors) and at runtime.
   The same question for _javascript_ files (.js) and stylesheet file=s  (.css).   And after that, we could put all information together and submit
  to the  Wiki.   Thank you!   --  Bruno Borges - SCJP 1.4  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]-- Bruno Borges - SCJP 1.4
[EMAIL PROTECTED]


Re: [Wicket-user] Images, Flashs, Javascripts, CSSs and other resources

2006-03-18 Thread Bruno Borges
In the case of static resources, the problem is that, as you show, if my web designer opens the Index.html he'll not see the images in his WYSIWYG editor.Thanks. 
From: Martijn Dashorst [EMAIL PROTECTED]To: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Images, Flashs, _javascript_s, CSSs and other resourcesReply-To: 
wicket-user@lists.sourceforge.netThere are several possibilities here.Dynamic approachNeeded in the following cases:- resource needs to be generated- resource comes from external, non-web system (database, etc)
- resource must be filtered (component id's subsitution, etc)- resource must be packaged with your componentStatic approachNeeded in the following cases:- absolute performance requirements - static resources served by
webserver, not servlet- static files, no special requirement for dynamic content- ?In the dynamic approach the resources need either to be registered at loadtime (this will change I think), or generated on the fly as needed. Resourc=
esource files should be available on the classpath, but need not be (provideyour own resolver).In the static approach, you put the files in the webroot and thus have themavailable to link from your pages.
com.foo.Index.htmlhtmlheadstyle src="" type=3Dtext/css/stylescript src="" type=3Dtext/_javascript_/script
/headbody/body/htmland directories:src/webapp/style/style.csssrc/webapp/prototype/prototype.jssrc/webapp/WEB-INF/web.xmlsrc/main/java/com/foo/Index.html
src/main/java/com/foo/Index.javaNot complete, but a start.MartijnOn 3/17/06, Bruno Borges [EMAIL PROTECTED]
 wrote: I've seen some threads in the mailing-list archive, and for I understand, there's no common way to deal with resources like those in the subject. Could you guys please list what's the best approaches to deal with images=
, so programmers and designers can work together without any problem? I wan=na see developers coding the html files, and designers specifying images in these pages, so the images can be displayed in the same way at developmen=
t time (WYSIWYG HTML Editors) and at runtime. The same question for _javascript_ files (.js) and stylesheet files (.css). And after that, we could put all information together and submit to the
 Wiki. Thank you! -- Bruno Borges - SCJP 1.4 [EMAIL PROTECTED]



[Wicket-user] DWR AJAX Integration

2006-03-17 Thread Bruno Borges
How Wicket handle AJAX?And does anybody had success integrating it with know-frameworks like DWR (my best choice to do ajax stuff).Regards,Bruno-- Bruno Borges - SCJP 1.4
[EMAIL PROTECTED]


[Wicket-user] Images, Flashs, Javascripts, CSSs and other resources

2006-03-17 Thread Bruno Borges
I've seen some threads in the mailing-list archive, and for I understand, there's no common way to deal with resources like those in the subject.Could you guys please list what's the best approaches to deal with images, so programmers and designers can work together without any problem? I wanna see developers coding the html files, and designers specifying images in these pages, so the images can be displayed in the same way at development time (WYSIWYG HTML Editors) and at runtime.
The same question for _javascript_ files (.js) and stylesheet files (.css).And after that, we could put all information together and submit to the Wiki.Thank you!-- Bruno Borges - SCJP 
1.4[EMAIL PROTECTED]