Re: brix and blogs

2009-12-24 Thread Vytautas Racelis

Hi,
currently www.xaloon.org is based on brix-cms. it has some advantages 
and some issues, which i'me preparing to describe next year :)


Fernando Wermus wrote:

Haiko,
Your work is great because it is right know the only way to decide to
use brix. I wonder if there is a way to create users as pages' owners, etc.
Because this is the minimal requirement I need to implement it.

continue publishing about brix; your article was very clear. I will follow
yours.



On Tue, Dec 22, 2009 at 7:11 PM, haiko hvdsch...@gmail.com wrote:


Fernando,

I have written a blog entry on the basic elements of brix. See it here
http://www.cybersnippet.nl/blog/entry/brixcms. In the entry is also a
link to a live brix demo app. Let me know what you think about it.

Greetings,

Haiko

On Tue, 2009-12-22 at 18:17 -0200, Fernando Wermus wrote:

Hi all,
 I would like to know if there is someone writing about brix in some
blog. As the info in brix page is poor, I am looking for another way to
undersand better the cms.

Thanks in advance.




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








--
Regards,
Vytautas Racelis
---
phone:+370-600-34389
www.xaloon.org
www.leenle.com

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



Re: Wicket feedback

2009-12-24 Thread Johan Compagner
So you just want to throw all the components of a page or panel (the one
with markup) in 1 big place.
then all those have to be uniquely named ofcourse. Throughout the complete
page.

Repeaters will then be a bit special i guess. Because they are generation
ListItem components for you
that then also should be added to the page i guess (and made unique per
repeater) And they point again to some of the global pool components?

I think this will cost performance (if we still use linear lists) or memory
(if we are going to use hashmaps).

But after that if we all have this.. Wont the code be unreadable?
What is in where? Because i guess you then want to just add alll the
components you have on a page in the page constructor..
So that one will be quite large with no relations to each other.. Or are you
going to group them again? But then you are doing exactly the thing you do
now

johan

P.S. i am against having 1 text field component.. TextArea and TexField are
also in html completely different beasts. I know there are ui (swt) that do
use 1, but others (swing) dont i like that separation..


On Wed, Dec 23, 2009 at 20:15, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  what does that have to do with OO exactly?

 hmm..

  It should be sufficient that the artist thinks the gfx are immacculate
  and that the java developer thinks the code is immacculate. Why do we
  need to couple java with html hierarchies and stuff? Some namespace
  attribute could suffice to allow nested components.
 
  put your money where your mouth is, come up with a prototype.

 Does wicket have a single point where it manages which component
 becomes the child of another and where the markup is loaded from? If
 yes, I could try to introduce a namespace attribute.

  we synchronize with the markup and lose some OOP, but we gain in desing.
  Have you ever change the look and feel of your application? with wicket
 it
  is really easy, in other frameworks it is a nightmare.

 If you give up coupling between html and java you do not lose the ease
 of design. Actually you will gain more ease and freedom of design.

 Furthermore, coding will be much faster as in most (80-90%) cases you
 need only a single namespace per panel and you could go about it
 without the need to worry about how the components are nested in html
  java.

 When I build a new panel I believe a significant amount of time is
 spent in synchronizing html and java. That's work time spent that is
 not really adding value in linear amount.

 **
 Martin

 
  -igor
 
 
  **
  Martin
 
  On Wed, Dec 23, 2009 at 1:51 PM, Igor Vaynberg 
 igor.vaynb...@gmail.comwrote:
 
  and where is this more OO?
 
  -igor
 
  On Wed, Dec 23, 2009 at 7:24 AM, Martin Makundi
  martin.maku...@koodaripalvelut.com wrote:
   I vote +1 for more OO Wicket. Way to go Ricardo!
  
   **
   Martin
  
   2009/12/23 Ricardo Mayerhofer ricardo.ekm.lis...@gmail.com:
   Hi Igor,
   Thanks for your response. Here goes my observations:
  
   Em 22/12/2009 14:41, Igor Vaynberg escreveu:
  
   On Tue, Dec 22, 2009 at 5:19 AM, Ricardo Mayerhofer
   ricardo.ekm.lis...@gmail.com  wrote:
  
  
   Hi all,
   We've just finished with success a wicket project for a large
 online
   retailer. I think wicket is the best framework out there, but as
 any
   other
   project there is room for improvement. I will talk about some
 topics
   bellow,
   I hope it can help in some way.
  
   - Separation of corcerns
   I think we could get a better separation of concerns if page
 class
  were
   focused more in behavior and html were more focused in display
 (or
  view).
   What I mean is, some times we have components that the main
 purpose is
  to
   add behavior, and we have to add extra markup just to satisfy
 wicket
  1:1
   mapping. Take CheckGroup for exaple, it is a component focused on
   behavior,
   even though we have to add a reference to it in HTML.
  
  
   a redesigned CheckGroup is welcome, but that component is the
   exception and not the rule.
  
  
  
   Yes, but how do we deal with the requirement of all components
 having a
  HTML
   representation? The same happens with RadioGroup, even with
 wicket-1055
   solved, the HTML reference is still there.
  
   When creating composite input fields (like date), the usual way
 is to
   create
   a panel even if you are not interested in reusability. A
 interesting
   aproach
   is to insert a hidden text field in HTML mapped to a component
 that
   controls
   other components input. It makes easier to integrate with
 designer and
  to
   preview in browser. If we didn't have this limitation the hidden
 input
   would
   not be necessary and the development of behavior focused
 components
  would
   be
   easier.
  
  
   i dont really understand this..the usual way would be to extend a
   FormComponentPanel, not a Panel. are you saying that because the
 Panel
   derivatives are just adiv  in the markup it makes it difficult
 for
   the designers?
  

Re: Wicket feedback

2009-12-24 Thread Martin Makundi
Hi!

 you have the sources, you can build whatever infrastructure you need
 that is missing. lets see it.

I had a quick look into it. IComponentResolver could probably
implement such quirk.

My first problem in trying to implement it is that I cannot actually
come up with a real world use case/test case where the markup and
wicket hierarchies should differ. :) And Johan was right, it will be a
mess. Sometimes the only thing that avoids the mess is that the
hierarchies are validated with each other.

Maybe all I need is an ide that would show me the hierarchy on-line
while editing in java and maybe alert whenever there is a mismatch.

**
Martin


 -igor
 come up with something concrete, in code, that works. talk is cheap.

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



GAE big table PageStore

2009-12-24 Thread sudhir543-dev
I need to write app specifically for GAE, I know Disk based page store wouldnt 
work.
Is there any existing solution for this? I searched mailing lists and did 
googling, seems that it has been discussed earlier too, but I don't find any 
implementation.

If I can get a prebuilt solution, I want to avoid my self from writing.

SN


 
  

Sudhir NimavatSenior software engineer. 
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

RE: Multi-user environment problem

2009-12-24 Thread Kogel, Jonck-van-der
Actually it's in the specs that the button is not visible when not
applicable. So I can't use your proposed solution. However, I solved it
as follows:

add(new Button(edit) {
private static final long serialVersionUID =
5348615260629883659L;
private Boolean localVisibleFlag;

@Override
public void onSubmit() {
String username =
((AppAuthenticatedWebSession)getSession()).getUsername();
ARF arf = arfModel.getObject();

if (arf.getEditor() == null) {
arf.setEditor(username);
arfService.save(arf);
}
localVisibleFlag = null;
}

@Override
public boolean isVisible() {
if (localVisibleFlag == null) {
String editor =
arfModel.getObject().getEditor();
if (editor == null) {
localVisibleFlag = true;
return true;
}
localVisibleFlag = false;
return false;
} else {
return localVisibleFlag;
}
}
});

Works like a charm.

Cheers, Jonck

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: woensdag 23 december 2009 17:14
To: users@wicket.apache.org
Subject: Re: Multi-user environment problem

Override isEnabled instead.  That way it is visible, even after being
clicked when the other person clicked it first.  You may have to add
some logic in the onClick that says oops - already in use.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Dec 23, 2009 at 9:46 AM, Kogel, Jonck-van-der 
jonck-van-der.ko...@bmw.nl wrote:

 Hi,
 I'm having a problem with a multi-user environment. I have a form, 
 which has an edit button. When a user presses the edit button, I write

 to the database that this current user is editing the form. So when 
 another user comes along and wants to edit it, he gets the message 
 that the form cannot be edited because it's locked by another user. 
 This works fine when user A loads the form, presses the edit button 
 and after that user B comes along. However, if the process is: user A 
 comes along and loads the form, user B loads the same form, then user 
 A presses the edit button and after that user B presses it. Then I get

 an unexpected runtimeexception and the message:
 WicketMessage: Submit Button topBar:edit (path=arfForm:topBar:edit) is

 not visible

 Now this obviously has to do with the way I'm determining whether or 
 not this button should be visible. What I did is extend the Button 
 class and override the isVisible method. Here I check whether there is

 no editor, if so, the button should be visible so the current user can

 become the editor. However, since in this situation, user B became the

 editor while this user had already loaded the form, the button is no 
 longer valid for user A but he already has it on his screen. I thought

 to check this in the onSubmit method and retrieve the persisted object

 and check if nothing had changed in the meantime, but apparently 
 Wicket checks whether this button should have been visible in the 
 first place. And since I use LoadableDetachableModel as the underlying

 model (arfModel) the updated object is retrieved and Wicket detects 
 that the isVisible method returns false and throws an error that I'm 
 trying to call the onSubmit method.

 Does anyone know of an elegant solution for this problem? Please see 
 below for my implementation of the edit button.

 Thanks, Jonck

 add(new Button(edit) {
  @Override
  public void onSubmit() {
  String username =
 ((AppAuthenticatedWebSession)getSession()).getUsername();
  ARF currentArf = arfModel.getObject();

  ARF persistedArf = arfService.load(currentArf.getId());

  if (persistedArf.getEditor() == null ||
 persistedArf.getEditor().equals(username)) {
   currentArf.setEditor(username);
   arfService.save(currentArf);
  }
  }

  @Override
  public boolean isVisible() {
  String editor = arfModel.getObject().getEditor();  if (editor == 
 null) {
   return true;
  }
  return false;
  }
 });



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



Re: Wicket feedback

2009-12-24 Thread Jason Lea



Maybe all I need is an ide that would show me the hierarchy on-line
while editing in java and maybe alert whenever there is a mismatch.

  
I think wicket bench might help with that... but in any case you can 
write test cases for your code using WicketTester the simplest being 
that the page/panel renders.
If the hierarchy doesn't match you get a test failure.  Then go and 
start testing your behaviors.  Then start writing your test before you 
write your page/panel Test Driven Development :)


... and when your designer changes the hierarchy in html, your 
continuous build system will alert everyone to the test failure so you 
can fix it nice and early.


--
Jason Lea



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



Re: looking for example wicket and hibernate

2009-12-24 Thread nino martinez wael
Theres also wicket Iolite, or I think the legup by jweekend..

2009/12/24 Martin Makundi martin.maku...@koodaripalvelut.com:
 Do not mix hibernate and wicket (web gui). Keep your persistence logic
 somewhere else.

 However, if you want only wicket-spring integration you can find some
 here: http://www.wicket-library.com/wicket-examples/spring/

 **
 Martin

 2009/12/24 Johan den Boer johanj.denb...@gmail.com:
 Hi

 I am looking for a real working example on wicket and hibernate. I have read
 the books 'Wcket in Action', 'Pro Wicket' and other books but none of them
 give a real working example. Can somebody point me to a real working example
 or can sent to me.

 The most problem i have with the configuration in web.xml and using the
 spring integration.

 --
 regards,

 John


 -
 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: Wicket feedback

2009-12-24 Thread Martin Makundi
I do all that (except haven't tried wicket bench!!) but I still want
to develop FASTER!! I want to get rid of all friction. Currently I get
friction from incoherent markup (I add replace a component via ajax
update but mistakenly add it into the wrong parent element.. I would
like a compile-time error message or code-time warning). Then
sometimes I have some javascript behavior added but do not remember to
update it when I replace the component via ajax - needs a new js
call.

Ofcourse some of the friction mentioned above is just WORK. But it is
BULK work. In order to code faster, I need to reduce the amount of
BULK work (bulk=repetitive, work that can be linearly extrapolated or
estimated; because it is generally possible to automate such BULK
work).

**
Martin

2009/12/24 Jason Lea ja...@kumachan.net.nz:

 Maybe all I need is an ide that would show me the hierarchy on-line
 while editing in java and maybe alert whenever there is a mismatch.



 I think wicket bench might help with that... but in any case you can write
 test cases for your code using WicketTester the simplest being that the
 page/panel renders.
 If the hierarchy doesn't match you get a test failure.  Then go and start
 testing your behaviors.  Then start writing your test before you write your
 page/panel Test Driven Development :)

 ... and when your designer changes the hierarchy in html, your continuous
 build system will alert everyone to the test failure so you can fix it nice
 and early.

 --
 Jason Lea



 -
 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



wicketstuff push, publishing event in a page2 and component installed with channel listener in page1

2009-12-24 Thread vineet semwal
Hellos,
recently i started using wicketstuff push ,i have few doubts as following ..
i have a situation where i need to publish a event in page 2 and add the
channel listener in page 1 .
for eg. a sign out event published in page 2 which i do using a remove
listener.

Also,can i install more than one channel listener on a component?

-- 
regards,
Vineet Semwal


Re: wicketstuff push, publishing event in a page2 and component installed with channel listener in page1

2009-12-24 Thread vineet semwal
regarding first doubt,
i can't seem to catch the event in page 1 if i publish a event in page 2,

On Thu, Dec 24, 2009 at 7:33 PM, vineet semwal
vineetsemwal1...@gmail.comwrote:

 Hellos,
 recently i started using wicketstuff push ,i have few doubts as following
 ..
 i have a situation where i need to publish a event in page 2 and add the
 channel listener in page 1 .
 for eg. a sign out event published in page 2 which i do using a remove
 listener.

 Also,can i install more than one channel listener on a component?

 --
 regards,
 Vineet Semwal




-- 
regards,
Vineet Semwal


Re: Groovy 1.7 released with ...

2009-12-24 Thread Gary Thomas

Cool, thanks for the info.
Is anyone have any luck building a Groovy+Wicket project with Maven?

Would love to try it out, but not having much luck with various gmaven 
plugin settings.  Stub generation does not seem to work with AIC.


Thanks,
G

On 12/22/09 7:47 AM, Ashley Aitken wrote:


Hi All,

FYI.

Groovy 1.7 has just been released with support for Anonymous Inner
Classes and Nested Classes (as well as other new features and
enhancements).

For those interested in using Groovy with Wicket this should make things
doable now and perhaps simpler than regular Java.

http://docs.codehaus.org/display/GROOVY/Groovy+1.7+release+notes

Cheers,
Ashley.

--
Ashley Aitken
Perth, Western Australia
mrhatken at mac dot com
Skype Name: MrHatken (GMT + 8 Hours!)


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



Re: GAE big table PageStore

2009-12-24 Thread Ilja Pavkovic
Hi,

http://lmgtfy.com/?q=google+app+engine+wicket

first link :)

Best Regards,
Ilja Pavkovic


Am Donnerstag, 24. Dezember 2009 10:56:51 schrieb sudhir543-...@yahoo.com:
 I need to write app specifically for GAE, I know Disk based page store
  wouldnt work. Is there any existing solution for this? I searched mailing
  lists and did googling, seems that it has been discussed earlier too, but
  I don't find any implementation.
 
 If I can get a prebuilt solution, I want to avoid my self from writing.
 
 SN
 
 
 
 
 
 Sudhir NimavatSenior software engineer.
 Quick start global PVT LTD.
 Baroda - 390007
 Gujarat, India
 
 Personally I'm always ready to learn, although I do not always like being
  taught
 
 
   The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
  http://in.yahoo.com/
 

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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



Re: GAE big table PageStore

2009-12-24 Thread sudhir543-dev


 Last comment on that page is from my self only :)
 It says.. I dont want to keep every thing in session.. and no one would want 
to.
I want 'GAE big table based PageStore'

  

Sudhir NimavatSenior software engineer. 
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught
  





From: Ilja Pavkovic ilja.pavko...@binaere-bauten.de
To: users@wicket.apache.org
Sent: Thu, 24 December, 2009 10:55:27 PM
Subject: Re: GAE big table PageStore

Hi,

http://lmgtfy.com/?q=google+app+engine+wicket

first link :)

Best Regards,
Ilja Pavkovic


Am Donnerstag, 24. Dezember 2009 10:56:51 schrieb sudhir543-...@yahoo.com:
 I need to write app specifically for GAE, I know Disk based page store
  wouldnt work. Is there any existing solution for this? I searched mailing
  lists and did googling, seems that it has been discussed earlier too, but
  I don't find any implementation.
 
 If I can get a prebuilt solution, I want to avoid my self from writing.
 
 SN
 
 
 
 
 
 Sudhir NimavatSenior software engineer.
 Quick start global PVT LTD.
 Baroda - 390007
 Gujarat, India
 
 Personally I'm always ready to learn, although I do not always like being
  taught
 
 
   The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
  http://in.yahoo.com/
 

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

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


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

[OT] WicketForge 0.6.1 available for IDEA 9

2009-12-24 Thread Nick Heudecker
WicketForge 0.6.1 is available for download.  In short, the changes are:

 - Completion on PropertyModel expressions.
 - Some assorted cleanup on other completion tasks.
 - 0.6.1 should work fine under the Community Edition.  The requirement for
JavaEE found in the Ultimate Edition has been removed.
 - Because of the above change, WicketForge is no longer a subfacet of the
Web facet.  Instead, it is standalone.

You can visit the Google Code site to download 0.6.1, or if you wait a
couple days it will be available from the JetBrains plugin repository.

http://code.google.com/p/wicketforge/downloads/list


CheckboxMultipleChoice: isEnabled() vs isEnabledInHierarchy()

2009-12-24 Thread McIlwee, Craig
I've just noticed that CheckboxMultipleChoice uses isEnabled() when rendering, 
but I think most other form components use isEnabledInHierarchy().  I like that 
most of the form components use the hierarchy method because it allows me to 
create a read only version of my forms by disabling the root component, but 
CheckboxMultipleChoice's behavior requires special handling.

Any specific reason that it works this way?  If not then I'll file a JIRA issue 
to have it changed.

Craig