Re: Getting warn message in log file while using tabs functionlaity in wicket

2012-11-09 Thread Sven Meier
Do what the log message recommends to do: Don't call getString() in your 
constructor.


Note that there are several other causes why a string might be retrieved 
from the localizer prematurely, e.g. when calling 
StringResourceModel#getString().


Hope this helps
Sven

On 11/09/2012 07:02 AM, chaitanya b wrote:

hi,
I am using wicket tabs functionality. its working fine. but i am getting war
message in log file.

The war message is like below
  Localizer [WARN] Tried to retrieve a localized string for a component that
has not yet been added to the page. This can sometimes lead to an invalid or
no localized resource returned. Make sure you are not calling
Component#getString() inside your Component's constructor. Offending
component: [MarkupContainer [Component id = panel]]


Can any one  please provide me a solution avoid the warn message in log file



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-warn-message-in-log-file-while-using-tabs-functionlaity-in-wicket-tp4653738.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Updating datatable ajax

2012-11-09 Thread Sven Meier
Why do you want to recreated the dataTable?

Sven



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-datatable-ajax-tp4653734p4653741.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Wicket Selectable Tree

2012-11-09 Thread void
Hi,

 I implemented a tree component similar to the SelectableFolderContent example 
(http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.NestedTreePage).
 It works fine as long as the nodes do have unique names. If thehe is more then 
one node with the same name, they all get selected by clicking on one of them. 
Can anyone offer a solution for that?

 Thanks
 Oliver


Re: Wicket Selectable Tree

2012-11-09 Thread Sven Meier
What is the generic parameter of your ITreeProvider ?

Sven

v...@gmx.it schrieb:

Hi,

 I implemented a tree component similar to the SelectableFolderContent example 
 (http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.NestedTreePage).
  It works fine as long as the nodes do have unique names. If thehe is more 
 then one node with the same name, they all get selected by clicking on one of 
 them. Can anyone offer a solution for that?

 Thanks
 Oliver

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



Re: Updating datatable ajax

2012-11-09 Thread Sven Meier
Normally you just add the table to the ART an when it regenerates its HTML it 
will use new data from your data provider.

Sven

anton antoniovalenciasp...@hotmail.com schrieb:

depending on what you specify in the text appear one row or other.

replaceWith,does not work



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-datatable-ajax-tp4653734p4653743.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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



Wicket Selectable Tree

2012-11-09 Thread void
It's a custom Node class, pretty similar to Foo in the example. I resolved this 
by adding a second attribute name to Node. name is returned by 
Node.toString() for display. The id attribute is set to 
hierarchy1.hierarchy2.name. So the id is unique: Selection works as expected.

 Regards
 Oliver

 --- Sven Meier (sv...@meiers.net) schrieb:

 What is the generic parameter of your ITreeProvider ?
 Sven

--- vo...@gmx.it schrieb:

 Hi,
 I implemented a tree component similar to the SelectableFolderContent example
 
(http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.tree.NestedTreePage
 ).
 It works fine as long as the nodes do have unique names. If thehe is more then
 one node with the same name, they all get selected by clicking on one of them.
 Can anyone offer a solution for that?
 Thanks
 Oliver


need advice for wicket-plugin's implementation

2012-11-09 Thread Decebal Suiu
Hi

I'm working to first version of wicket-plugin. I encounter some problems.
In few words I implemented a PluginManagerInitializer that create a
PluginManager, load and start the plugins from a directory 
and store the plugin manager to application using wicket meta data.
Each plugin is loaded with a PluginClassLaoder.
I want to map each plugin's resources on ./plugin/plugin-name/...

My problem is how to create a reference to a plugin resource.

See this code:

@Extension
public static class HelloSection extends SimpleSection {

public HelloSection() {
//super(new ModelString(Hello), new
PluginResourceReference(HelloSection.class, settings.png));
super(new ModelString(Hello), new
PackageResourceReference(HelloSection.class, settings.png));
}

}

In above code I want to add a new tab (section) to my TabbedPanel (I created
a demo application with a tabbed panel and itabs from plugins) 
but HelloSection.class is not visible to wicket (I retrieve a
CastClassException).
It seems to me that I cannot use ResourceReference in my case because
scope parameter (must be visible in wicket but I want something relative
to plugin baseResourcesPath).

Any advice how can I implement my idea is welcome.

Best regards,
Decebal 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/need-advice-for-wicket-plugin-s-implementation-tp4653751.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: need advice for wicket-plugin's implementation

2012-11-09 Thread Decebal Suiu
Hi

I will abort the solution with ResourceReference.

I will try to use a IRequestMapper (PluginResourceMapper) for each started
plugin (if request url is ./plugin/plugin-name/...). The mapRequest() method
will return a ResourceRequestHandler (PluginResourceRequestHandler) that
returns a ContextRelativResource (PluginResource) on getResource() method.

Each wicket plugin has a method getPluginResourceUrl(String relativePath) -
with a possible implementation
getRequestCycle().urlFor(PluginResourceRequestHandler).toString().

Does this make sense?

Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/need-advice-for-wicket-plugin-s-implementation-tp4653751p4653755.html
Sent from the Users forum mailing list archive at Nabble.com.

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



migration to wicket 6

2012-11-09 Thread saty
old wicket code has this everywhere in my app
some textField .add

new AjaxEventBehavior(onkeypress)
{
.
.

protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
{

}
.
.
}

could someone point me to an example how this can be done in wicket 6.
Looking to migrate getCallbackScript(boolean onlyTargetActivePage) part.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/migration-to-wicket-6-tp4653756.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: migration to wicket 6

2012-11-09 Thread Sven Meier
I'm not sure what you're doing in #getCallbackScript() but have you read 
this?


https://cwiki.apache.org/WICKET/wicket-ajax.html#WicketAjax-AjaxRequestAttributes

Sven

On 11/09/2012 09:25 PM, saty wrote:

old wicket code has this everywhere in my app
some textField .add

new AjaxEventBehavior(onkeypress)
{
.
.

protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
{

}
.
.
}

could someone point me to an example how this can be done in wicket 6.
Looking to migrate getCallbackScript(boolean onlyTargetActivePage) part.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/migration-to-wicket-6-tp4653756.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: migration to wicket 6

2012-11-09 Thread Martin Grigorov
Read about dynamic extra parameters in the link that Sven gave you earlier.


On Fri, Nov 9, 2012 at 11:05 PM, saty satya...@gmail.com wrote:

 Thanks, its pretty much doing something similar to this example



 https://cwiki.apache.org/WICKET/identifying-the-key-that-was-pressed-in-a-serverside-key-handler.html



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/migration-to-wicket-6-tp4653756p4653758.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/