Re: Problem to replace panel

2010-08-26 Thread zoran

I've solved this. The problem was in that I made a call to update panel
methods for both panels from instance of the first panel that was updated.
The second call on update method was on the wrong target, so it couldn't
found a component (panel) to update.

Zoran
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2340433.html
Sent from the Wicket - User 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: Problem to replace panel

2010-08-23 Thread Igor Vaynberg
your example is too complicated, create a simple quickstart using the
wicket archetype and only add the necessary bits to replicate the
problem

-igor

On Sun, Aug 22, 2010 at 8:03 AM, zoran jeremy...@gmail.com wrote:

 Hi Martin,

 I finally made a some kind of quickstart. I removed all unnecessary code
 from the application, and at the same time the problem is still there.
 The code is available at
 http://zoranjeremic.org/files/intelleo-mavenized.rar.
 It is maven application. Main class that starts everything is
 org.intelleo.app.Run. After application start you should call
 http://localhost:8080/intelleo/index.html and click the first button in
 dockbar.
 There are two panels on the page. Update panels link should update both of
 them, but only one is updated.

 The Wicket page that contains this panels is PreviewGoals.

 I hope this will works for you.

 Zoran
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334184.html
 Sent from the Wicket - User 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: Problem to replace panel

2010-08-22 Thread zoran

Hi Martin,

I was trying to make this quick start but it's very difficult to make this
works, as it is dependent on many Tuscany web services. Does it works for
you to send you the whole maven project or just a files containing the code
that makes a problem?

Zoran
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334078.html
Sent from the Wicket - User 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: Problem to replace panel

2010-08-22 Thread Martin Makundi
Quickstart is better.

**
Martin

2010/8/22 zoran jeremy...@gmail.com:

 Hi Martin,

 I was trying to make this quick start but it's very difficult to make this
 works, as it is dependent on many Tuscany web services. Does it works for
 you to send you the whole maven project or just a files containing the code
 that makes a problem?

 Zoran
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334078.html
 Sent from the Wicket - User 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: Problem to replace panel

2010-08-22 Thread zoran

Hi Martin,

I finally made a some kind of quickstart. I removed all unnecessary code
from the application, and at the same time the problem is still there.
The code is available at
http://zoranjeremic.org/files/intelleo-mavenized.rar.
It is maven application. Main class that starts everything is
org.intelleo.app.Run. After application start you should call
http://localhost:8080/intelleo/index.html and click the first button in
dockbar.
There are two panels on the page. Update panels link should update both of
them, but only one is updated.

The Wicket page that contains this panels is PreviewGoals.

I hope this will works for you.

Zoran
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2334184.html
Sent from the Wicket - User 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



Problem to replace panel

2010-08-21 Thread zoran

Hi,

I have one wicket page containing two different panel. Based on the same
event, these panels should be changed with new instances of the same panels.
The methods that performs change of these panels are called after the same
event. However, first panel is changed without a problem, but the second
panel is created but it is not changed. 
I used the same approach to change both panels. Here is the code:

public T extends UsedResourcesPanel void updateUsedResourcesPanel(ClassT
clazz, AjaxRequestTarget target){
 usedResourcesDiv=new WebMarkupContainer(urDIV);
usedResourcesDiv.setOutputMarkupId(true);
 
try {
UsedResourcesPanel
tempUsedResourcesPanel=UsedResourcesPanel.class.getConstructor(String.class,URI.class,String.class,TargetCompetence.class).newInstance(urPANEL,this.currGoalUri,this.currGoalType,this.currTargCompetence);

tempUsedResourcesPanel.setOutputMarkupId(true);

tempUsedResourcesPanel.setCompetenceTitle(currTargCompetence.getCompetence().getTitle());

usedResourcesPanel.replaceWith(tempUsedResourcesPanel);

usedResourcesPanel=tempUsedResourcesPanel;

target.addComponent(usedResourcesPanel); 

} catch (Exception e) {
logger.error(e.getMessage(), e);
throw new 
RestartResponseException(PLKMBasePage.class);
} 
 }

Do you have any idea what is the problem here?
Thanks.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2333462.html
Sent from the Wicket - User 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: Problem to replace panel

2010-08-21 Thread Martin Makundi
Can you see it in html with firebug?

**
Martin

2010/8/21 zoran jeremy...@gmail.com:

 Wicket dialog first shows info about HTML code that indicates that this panel
 is created, than afterward, there is error line pointed out that
 setOutputMarkupId is not set to true. However, as you can see from my
 previous post, it is set to true.

 Here is the part of wicket debug message showing error:

 ERROR: Wicket.Ajax.Call.processComponent: Component with id
 [[usedResourcesPanel23]] a was not found while trying to perform markup
 update. Make sure you called component.setOutputMarkupId(true) on the
 component whose markup you are trying to update.
 INFO: Channel busy - postponing...
 INFO: Response processed successfully.
 INFO: Invoking post-call handler(s)...
 INFO: Calling posponed function...
 INFO:
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:0:contentDiv:contentPanel:competenceDiv:competencePanel::IActivePageBehaviorListener:2:-1wicket:ignoreIfNotActive=trueexpectedLevel=0random=0.0189175822560973
 INFO: Invoking pre-call handler(s)...
 INFO: refocus last focused component not needed/allowed
 INFO: Received ajax response (69 characters)
 INFO:
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2333598.html
 Sent from the Wicket - User 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: Problem to replace panel

2010-08-21 Thread Martin Makundi
Can you make a wicket quickstart that repeats the problem?

**
Martin

2010/8/21 zoran jeremy...@gmail.com:

 Yes. Everything looks fine.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-to-replace-panel-tp2333462p2333782.html
 Sent from the Wicket - User 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