RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
e.display='none';"); how does that work??? -igor On Fri, Dec 12, 2008 at 10:38 AM, Bruno Cesar Borges wrote: > It could continue to return "foo". But when processing ajax responses, > wicket:ref will register, through Javascript, the references to "foo&qu

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
rs@wicket.apache.org Subject: Re: how to reuse a label in the same page? what do we return from getmarkupid() because that is what the code uses to output that markupid for the javascript that needs to manipulate the dom nodes. -igor On Fri, Dec 12, 2008 at 10:28 AM, Bruno Cesar Borges wrote:

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
Dec 12, 2008 at 10:28 AM, Bruno Cesar Borges wrote: > I'm pretty sure it is possible to register all markup IDs generated to > referenced nodes. > > new Label("foo", "Foo"); > > ddd > again > > outputs: > Foo > Foo > > Then it would be p

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
I'm pretty sure it is possible to register all markup IDs generated to referenced nodes. new Label("foo", "Foo"); ddd again outputs: Foo Foo Then it would be possible to do, for instance, an Ajax update over all nodes. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gma

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
Really, if we think about the DOM tree and XMLs, we'll see that it is possible to put some information in different places, but that information is declared only once. Wicket works with XHTML (XML over HTML). So why not support this? If one decides to refer to a component declared in another pi

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
Sorry. What I did want to say was that "There are some cases where creating a fragment or a panel to be reused is just... too cumbersome." -Original Message----- From: Bruno Cesar Borges [mailto:brunobor...@cetip.com.br] Sent: Friday, December 12, 2008 10:37 AM To: users@wicket.

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
is a code smell: you should extract that component to a panel or fragment and reuse the panel (/fragment). Martijn On Fri, Dec 12, 2008 at 1:32 PM, Martijn Dashorst wrote: > ieuw > > On Fri, Dec 12, 2008 at 1:30 PM, Bruno Cesar Borges > wrote: >> Martijn, it is possible

RE: how to reuse a label in the same page?

2008-12-12 Thread Bruno Cesar Borges
Martijn, it is possible to create nodes inside a DOM tree refering to another DOM node. What if it was possible to do the same with Wicket? label again again but outside panel! Regards, Bruno -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Frid

RE: Integrating Scheduler into Web Application

2008-12-11 Thread Bruno Cesar Borges
You should setUp/tearDown Quartz's Scheduler using context listener in your web application and attach it to your Application Context. -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Thursday, December 11, 2008 6:41 PM To: users@wicket.apache.org Sub

Re: [OT] wicket users around the world

2008-12-11 Thread Bruno Cesar Borges
Rio de Janeiro, Brazil For those brazilians out there, check this out: http://blog.brunoborges.com.br/search/label/Wicket And this: http://groups.google.com/group/wicket-ptbr Thanks, Bruno -Original Message- From: Cristiano Kliemann [mailto:cristia...@gmail.com] Sent: Thursday, December

RE: Include a jsp in my wicket-page -> PageExpired

2008-12-11 Thread Bruno Cesar Borges
o answer this request, but it shoukd delegate it to the existing web-applicatoion-servlet. hope that displays my dilemma. i need a possibility to display and control the jsp-app in a wicket panel - like @include in jsp. thanks alex Bruno Cesar Borges wrote: > > Looks like you want to pr

RE: NPE when embedding

2008-12-11 Thread Bruno Cesar Borges
Please, submit a JIRA issue. Looks like a simple bug while parsing the content. PS: should now be the time to reconsider the idea of dropping wicket:link? :-) -Original Message- From: danielt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 11:34 AM To: users@wicket.apache.org

RE: Include a jsp in my wicket-page -> PageExpired

2008-12-11 Thread Bruno Cesar Borges
Looks like you want to process a JSP Form to a Wicket page. I hardly think this is possible. What you could try to do is using an IFrame to load a Wicket page containing that form. But I rather ask you, why do you want to use JSPs within the same application that uses Wicket? -Original Mes

RE: Newbie question

2008-12-09 Thread Bruno Cesar Borges
tCart().getCheeses().size() != cartListView.size() On Wed, Dec 10, 2008 at 12:31 AM, Bruno Cesar Borges < [EMAIL PROTECTED]> wrote: > I think you are talking about the 'viewSize' property of ListView. > > This indicates how many "viewable" ite

RE: Newbie question

2008-12-09 Thread Bruno Cesar Borges
I think you are talking about the 'viewSize' property of ListView. This indicates how many "viewable" items will be displayed within a ListView. -Original Message- From: Mark Daniel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:23 PM To: users@wicket.apache.org Subject: N

RE: Clustering Problems / java.lang.StackOverflowError

2008-12-08 Thread Bruno Cesar Borges
Jeremy, could you please try to debug and see which class Wicket is trying to resolve at class IObjectStreamFactory, line 70? org.apache.wicket.util.io.IObjectStreamFactory$1.resolveClass(IObjectStreamFactory.java:70) Thanks, Bruno -Original Message- From: Jeremy Levy [mailto:[EMAIL PRO

RE: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Bruno Cesar Borges
. Hi Bruno. I WILL create a Wiki page soon. How do I do this - is there a process? Rgds, Graeme. Bruno Cesar Borges wrote: > > Well done Graeme! > > =) > > Now, please create a Wiki page with all this information, for God's sake! > > cheers, > bruno >

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Bruno Cesar Borges
ML on AJAX load of panel. Yahhhyahhh! The answer appears to be a HeaderContributor with a call to renderOnLoadJavascript. Bruno - you're a star! I will respond with a more sensible sentence than above as soon as I have proven it (so far it works). Rgds, Graeme. Bruno Cesar Borges wrote

RE: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Bruno Cesar Borges
ML prior to insertion on the innerHTML. If I can >> get that bit working I'm going to get back to our thread on the CIDs very >> soon! >> >> Cheers, Graeme. >> >> >> Graeme Knight wrote: >>> >>> Hi Bruno, >>&g

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Bruno Cesar Borges
can submit to the Wicket people for verification? REALLY appreciate your discussion on this. Cheers, Graeme. Bruno Cesar Borges wrote: > > Put that code into some .js file and add it to your panel as a > HeaderContributor. Then you are ready to go. > > -Original Message--

Re: Populate IFRAME innerHTML on AJAX load of panel.

2008-12-08 Thread Bruno Cesar Borges
Put that code into some .js file and add it to your panel as a HeaderContributor. Then you are ready to go. -Original Message- From: Graeme Knight [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 11:48 AM To: users@wicket.apache.org Subject: Re: Populate IFRAME innerHTML on AJAX

Re: LoadableDetachableModel in Listview

2008-12-08 Thread Bruno Cesar Borges
Put your object into user's session, just like a shopping chart. :-) -Original Message- From: Benjamin Ernst [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 10:06 AM To: users@wicket.apache.org Subject: LoadableDetachableModel in Listview Hi everybody, I have a little Problem

RE: Thread.sleep() for only one session

2008-12-05 Thread Bruno Cesar Borges
u let them try a few times and if they are still failing, you initiate the captcha. On Fri, Dec 5, 2008 at 12:48 PM, Bruno Cesar Borges < [EMAIL PROTECTED]> wrote: > I'm totally against captcha. It's annoying for users and just one more > obstacle for criminals - they will al

RE: Thread.sleep() for only one session

2008-12-05 Thread Bruno Cesar Borges
I'm totally against captcha. It's annoying for users and just one more obstacle for criminals - they will always find a way to break it. What I really suggest is: 1) use HTTPS (obviously) 2) require your users a strong password 3) if your user tries login in more than X times, disable his/her a

Re: make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Alright, this is my last try replying with MS Outlook. =) And I will also add more info to help with this thread. You can use borders to acomplish what you want. Here's an example: #JAVA public abstract class ConditionalHiddenBorder extends Border { public ConditionalHiddenBorder(String id)

Re make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Use a border PS: I hate Microsoft Outlook -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 1 de dezembro de 2008 09:03 Para: users@wicket.apache.org Assunto: make invisible if model object is null I use the next construction very often: [markup] Somethi

RES: make invisible if model object is null

2008-12-01 Thread Bruno Cesar Borges
Use a border -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 1 de dezembro de 2008 09:03 Para: users@wicket.apache.org Assunto: make invisible if model object is null I use the next construction very often: [markup] Something here, description, comments

Re: How to get all the children of a MarkupContainer?

2008-11-28 Thread Bruno Cesar Borges
https://issues.apache.org/jira/browse/WICKET -Mensagem original- De: Valentine2008 [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 28 de novembro de 2008 18:12 Para: users@wicket.apache.org Assunto: Re: How to get all the children of a MarkupContainer? Where to open a jira issue? i

RES: RES: How can I instance home page myself

2008-11-27 Thread Bruno Cesar Borges
By the way, you can implement an IPageFactory :-) -Mensagem original- De: Bruno Cesar Borges [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 27 de novembro de 2008 16:49 Para: users@wicket.apache.org Assunto: RES: RES: How can I instance home page myself You can always code your

RES: RES: How can I instance home page myself

2008-11-27 Thread Bruno Cesar Borges
You can always code your page in such way that makes it easy to be tested, like this: public MyPage() { setFoo(getApplication().getFoo()); } protected MyPage(IFoo foo) { setFoo(foo); } -Mensagem original- De: Kamil Hark [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 27 de nov

RES: How can I instance home page myself

2008-11-27 Thread Bruno Cesar Borges
What kind of dependencies you want to pass on? If you want URL parameters, just put a PageParameters argument to the Page's constructor. Wicket will inject that automatically. If you want to inject objects from the Application instance, you can just get those from Page's constructor itself. pu

RES: Set format date "inline"

2008-11-27 Thread Bruno Cesar Borges
@Override public IConverter getConverter(Class type) { return MyConverter(); } -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 27 de novembro de 2008 14:57 Para: users@wicket.apache.org Assunto: Set format date "inline

RES: Wicket and CoC

2008-11-26 Thread Bruno Cesar Borges
There you go. What about creating a project into Wicket Stuff, called ... WiCooCo? Wicket Conventioned over Configurations =) -Mensagem original- De: Ricardo Mayerhofer [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 26 de novembro de 2008 19:57 Para: users@wicket.apache.org Assunt

RES: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Bruno Cesar Borges
Here's what I've commented on this issue: I think the purpose of Transfer Object Pattern , where it says it wants to reduce remote calls between tiers over the network is related to tiers like client / server architectures. This means that: i) A Swing client requests a query on a table for a r

RES: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Bruno Cesar Borges
You have to consider some things 1) Is this table going to be huge? 2) Am I going to let users do a Full Table Scan? (letting them search without filters, for instance) 3) Is this table frequently updated? How often new data is added to it? 4) Any other question that may affect your scalability .

RES: Wicket Session grows too big real fast

2008-11-26 Thread Bruno Cesar Borges
Maybe would be a good idea if Wicket could report memory usage for non-Wicket_Components (and non-standard Java objects, like String and Collections) in memory. I don't know if this could ever be possible. -Mensagem original- De: Ladislav Thon [mailto:[EMAIL PROTECTED] Enviada em: quarta

RES: Wicket Session grows too big real fast

2008-11-26 Thread Bruno Cesar Borges
Now that is a really good advice. :-) -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 26 de novembro de 2008 14:19 Para: users@wicket.apache.org Assunto: Re: Wicket Session grows too big real fast I am not sure if it always applicable, but usually I do not

RES: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Bruno Cesar Borges
[X] - YES - and let be Igor the one controlling all releases. :-) -Mensagem original- De: Jeremy Thomerson [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 24 de novembro de 2008 16:13 Para: users@wicket.apache.org; Wicket Development Assunto: [VOTE] Organizing Wicket Stuff

RES: Set the HTML id programmatically

2008-11-21 Thread Bruno Cesar Borges
AttributeModifier does not work? -Mensagem original- De: Martin Letendre [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 21 de novembro de 2008 18:09 Para: users@wicket.apache.org Assunto: Set the HTML id programmatically I am usign this version of Wicket: 1.3.5 1- I would like to o

RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Bruno Cesar Borges
Yes, you need to set a Model object into FileUploadField. :-) Bruno -Mensagem original- De: Martin Makundi [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 19 de novembro de 2008 14:33 Para: users@wicket.apache.org Assunto: FileUploadField usage changed in 1.4 rc-1? Hi! My FileUploa

RES: Border invalidates browser preview

2008-11-19 Thread Bruno Cesar Borges
I think on Dreamweaver you can use templates. Snippets of HTMLs that you can set only during WYSIWYG editing. And after you save the HTML, those parts will be removed automatically. is just a convenient http://www.adobe.com/support/dreamweaver/templates/dwfw_templates_tutorial/ This is a good

RES: Model never called

2008-11-19 Thread Bruno Cesar Borges
I couldn't understand the part about the icon, but what I know is that 'getObject()' will *never* be called until you set the Square object into itself as the model: public Square() { setModel(this); } Regards, Bruno -Mensagem original- De: Leucht, Axel [mailto:[EMAIL PROTECTED] Env

RES: wicket:link modify tags

2008-11-17 Thread Bruno Cesar Borges
If wicket:link become smarter, people will ask for more and more features, and at the end, we will have a Tag Library... :-) So please, if wicket:link doesn't assist you, go for Bookmarkable Links. Cheers, Bruno -Mensagem original- De: Igor Vaynberg [mailto:[EMAIL PROTECTED] Enviada em: