greptilian logo

IRC log for #friendlyjava, 2015-05-09

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:51 Kyzz Hows it going everyone?
01:09 pdurbin Kyzz: early bedtime I think
02:30 Kyzz pdurbin: Don't blame you...had my last final but finishing up 12 or so quizzes left over from an online class
02:30 Kyzz Then I'm moving home tomorrow for my internship
02:38 Kyzz It's been a long week heh
05:44 Richard_2340985 joined ##friendlyjava
08:21 aditsu joined ##friendlyjava
08:29 pdurbin early bedtime turned into a nap. I should be sleeping
08:29 pdurbin Kyzz: I forget if you told us about your internship
09:36 aditsu joined ##friendlyjava
14:55 aditsu joined ##friendlyjava
14:56 pdurbin Richard_2340985: maybe you should ask how people here would build that dashboard.
14:58 Richard_2340985 ok, how can I build a form that can be changed dynamically? like a gui editor for a live-form
14:58 Richard_2340985 in a dashboard it is similar, you can add and remove components: http://ostatic.com/files/images/article.png
14:59 pdurbin I think in Drupal you can add and remove "blocks".
14:59 Richard_2340985 yes, because lots of stuff is in their database
15:02 pdurbin Richard_2340985: actually, do you know where you should ask? #opensourcedesign
15:03 Richard_2340985 hm maybe... I was thinking if it is possible with jsf
15:03 Richard_2340985 pdurbin: because when I just change html code, it is no problem
15:06 Richard_2340985 pdurbin: maybe I just need a custom component, where I can render what I want and take input like I want
15:08 pdurbin I'm sure *someone* could bang this out in JSF. :)
15:09 Richard_2340985 I'm not so sure, because you have to redeploy stuff to the server, when you update classes
15:09 pdurbin Richard_2340985: maybe show us the HTML code that's working: http://jsfiddle.net
15:09 Richard_2340985 I guess OSGi could be a solution
15:10 Richard_2340985 pdI guess what's working is
15:10 Richard_2340985 pdurbin: when I just make parts invisible and blend them in
15:11 Richard_2340985 pdurbin: http://webbausteine.de/blog/javascript/formularfelder_dynamisch.php
15:14 pdurbin I'm not sure how OSGi has anything to do with this.
15:17 Richard_2340985 because you can hot-deploy components?
15:17 pdurbin oh. hmm. true
15:18 Richard_2340985 so you could create new source code dynamically
15:18 pdurbin I mean, Netbeans is build on top of OSGi.
15:18 pdurbin built*
15:18 Richard_2340985 and also glassfish
15:18 pdurbin yeah
15:18 Richard_2340985 but it would be too much to do this for many users
15:19 Richard_2340985 a custom component could evaluate dynamically created form fields and serialise them
15:20 Richard_2340985 but then I guess you don't have the container services
15:21 Richard_2340985 no validation and stuff
15:24 Richard_2340985 maybe it is possible to take existing components and send them an id
15:24 Richard_2340985 because changing xhtml pages does not require a restart
15:25 Richard_2340985 then you could look the whole answer up with that id
15:25 pdurbin I think you can do basically anything with a custom JSF component. It's black magic to me though.
15:26 Richard_2340985 I made a really simple one, to look how it works
15:26 pdurbin oh. cool. is it open source?
15:27 Richard_2340985 I just had a look at open examples
15:27 Richard_2340985 there is one in the official documentation
15:28 Richard_2340985 https://docs.oracle.com/javaee/7/tutorial/jsf-custom003.htm
15:28 Richard_2340985 they also have a demo with the code
15:30 Richard_2340985 I have not been able to use the content between tags though like <customtag>content</customtag>
15:30 pdurbin ah
15:30 Richard_2340985 only works for me with <customtag value="content">
15:30 aditsu about the dynamic form, I would (obviously) do it in wicket :)
15:30 Richard_2340985 that is so wicket
15:31 aditsu yes id is :)
15:32 Richard_2340985 but how?
15:32 Richard_2340985 I think you'd also have to make a custom component
15:33 aditsu depends on how you want it to work...
15:33 aditsu I'd probably have a repeater that uses a list of components
15:33 aditsu and update that list
15:34 Richard_2340985 I think that list is the jsf-component tree
15:35 Richard_2340985 oh looks like it goes into this direction: http://blog.kennardconsulting.com/2010/10/safely-manipulating-component-tree-with.html
15:35 aditsu I doubt wicket can use jsf components :p
15:35 Richard_2340985 yeah, true... I guess I have to learn a bit more about jsf now...
15:40 Richard_2340985 hm, do you know sth. about http://metawidget.org/ ?
15:41 aditsu haven't heard of it

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode