Re: Adding/Replacing links in Panels

2009-02-13 Thread ashtek

Yes, but in my case, I dont need separate panels (the only variable being the
link, and everything else remains constant). I might then as well include
the markup in each of the files.


Michael Sparer wrote:
 
 personally I'm no fan of conditional adding components with the same id.
 e.g.
 if (user.isSignedIn() {
 add(new SignedInPanel(foo));
 else {
 add(new SignedOutPanel(foo));
 }
 
 I rather add all panels and make them invisible or visible
 
 add(new SignedInPanel(foo).setVisible(user.isSignedIn()); // or override
 isvisible if that may change ...
 add(new SignedOutPanel(bar).setVisible(!user.isSignedIn()); 
 
 this way you always know which panels are added to the page and what they
 are ...
 
 regards,
 Michael
 
 
 ashtek wrote:
 
 Hey All,
 
   I apologize for the long content -
   
   I have a navigation bar on the side that contains links to add Users,
 Permissions, Roles, etc... When a user clicks on a navigation link (say
 Users), a Users home page is displayed that contains a link to add users,
 and a list of all available users. 
   
   The link to add users is a panel that contains 
   
   wicket:link
  td #  Add Users  /td
   /wicket:link
   
   
   In each of the home pages I add the panel like this -
   
 On the User home page I add,  add(new AddPanel(addPanel,
 AddPanel.USER));
 
 On the Roles home page I add,  add(new AddPanel(addPanel,
 AddPanel.ROLES));
 
 
  And this is what I have in the AddPanel.class
  
  public AddPanel(String id, int addWhat) {
  super(id);
  
  switch (addWhat) {
  case USER:
  add(new BookmarkablePageLink(addLink, 
 EditUsers.class));
  case ROLES:
  case PERMISSIONS:
  add(new BookmarkablePageLink(addLink, 
 EditPermissions.class));
  default:
  }
  
  
 The Problem is, when I click on the Users homepage, and then I click on
 the Permissions home page, I get an error saying addLink already exists
 in the markup. Is there a better way to handle links than this? 
 
 Thanks!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21995664.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: Adding/Replacing links in Panels

2009-02-13 Thread ashtek

Thanks Mathias. That was it. :) The links render properly now.
-- 
View this message in context: 
http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21995675.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



Adding/Replacing links in Panels

2009-02-12 Thread ashtek

Hey All,

  I apologize for the long content -
  
  I have a navigation bar on the side that contains links to add Users,
Permissions, Roles, etc... When a user clicks on a navigation link (say
Users), a Users home page is displayed that contains a link to add users,
and a list of all available users. 
  
  The link to add users is a panel that contains 
  
  wicket:link
td #  Add Users  /td
  /wicket:link
  
  
  In each of the home pages I add the panel like this -
  
On the User home page I add,  add(new AddPanel(addPanel, AddPanel.USER));

On the Roles home page I add,  add(new AddPanel(addPanel,
AddPanel.ROLES));


 And this is what I have in the AddPanel.class
 
public AddPanel(String id, int addWhat) {
super(id);

switch (addWhat) {
case USER:
add(new BookmarkablePageLink(addLink, 
EditUsers.class));
case ROLES:
case PERMISSIONS:
add(new BookmarkablePageLink(addLink, 
EditPermissions.class));
default:
}


The Problem is, when I click on the Users homepage, and then I click on the
Permissions home page, I get an error saying addLink already exists in the
markup. Is there a better way to handle links than this?   

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21989041.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



Error building TinyMce

2009-02-10 Thread ashtek

I am trying to build TinyMCE and I get the following error - Has anyone seen
this error before?

D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn install
[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: unknown:tinymce

Reason: Parent: null:tinymce-parent:jar:null of project: unknown:tinymce has
wro
ng packaging: jar. Must be 'pom'. for project unknown:tinymce


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parent:
null:tinymce-parent:ja
r:null of project: unknown:tinymce has wrong packaging: jar. Must be 'pom'.
for
project unknown:tinymce
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21941674.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: Error building TinyMce

2009-02-10 Thread ashtek

Thanks Lukasz.

I tried what you suggest and I still got the same error.

D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parentmvn install
[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: unknown:tinymce-parent

Reason: Parent: org.wicketstuff:wicket-contrib-tinymce:jar:1.3-SNAPSHOT of
proje
ct: unknown:tinymce-parent has wrong packaging: jar. Must be 'pom'. for
project
unknown:tinymce-parent


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parent:
org.wicketstuff:wicket







-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21944690.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: Error building TinyMce

2009-02-10 Thread ashtek

I have been struggling with the last couple of days, and I am not sure if it
because I am using the 1.3 snapshot

In any case, you just do a svn checkout and then an mvn install, right? No
editing files after the checkout?

Can you also give me the checkout URL you used? The one listed on
Wicketstuff wiki does not seem to work.



-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21945694.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: Error building TinyMce

2009-02-10 Thread ashtek

I have been struggling with the last couple of days, and I am not sure if it
because I am using the 1.3 snapshot

In any case, you just do a svn checkout and then an mvn install, right? No
editing files after the checkout?

Can you also give me the checkout URL you used? The one listed on
Wicketstuff wiki does not seem to work.



-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21945755.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



Building and using TinyMCE in Wicket

2009-02-09 Thread ashtek

Hey all,
  
  I am trying to use TinyMCE, and I downloaded all the source from here - 

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/

This creates a folder called tinymce-parent which in turn has two subfolders
tinymce and tinymce-examples.

Whatever I do, I am not able to build using maven. When I say mvn clean
compile or mvn install, i just get a empty jar file in my repo. 

Can someone help?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Building-and-using-TinyMCE-in-Wicket-tp21924857p21924857.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