Re: [magnolia-dev] Developing Features - Dynamic Select

2005-09-08 Thread Michael Aemisegger

Boris Kraft wrote:
I'm developing a new Control that is a DynamicSelect, it extend the 
features

of DialogSelect in a dynamic way.

Basycally, you create a dialog with this control, and set options to the
"page path", the content collection and the field you want to get.

With these informations I populate the select.
The objective is to place a Reference to another node, so I can grant the
data integrity.


maybe you can go one step further and allow entering a provider (class). 
Then, you can create one provider for your specific idea; others can 
create their own providers to populate the option. This way, we could 
use providers that for example query web services or databases for their 
content.


I already have developed a select dialog with which you can specify SQL. The 
SQL is then used search the indexed repository to populate the options. It's 
still in Beta that's why I didn't send a patch. Another option could be to 
specify XPath Queries. Coming soon.


--
Cheers,
Michael


for list details see
http://www.magnolia.info/en/magnolia/developer.html



[magnolia-dev] [JIRA] Created: (MAGNOLIA-543) Additional functionality - templates from subnodes of Config/module/templating/Templates are included in template select on Website panel

2005-09-08 Thread Tomasz Mazan (JIRA)
Additional functionality - templates from subnodes of 
Config/module/templating/Templates are included in template select on Website 
panel
-

 Key: MAGNOLIA-543
 URL: http://jira.magnolia.info/browse/MAGNOLIA-543
 Project: magnolia wcm
Type: New Feature
  Components: gui-admin  
Reporter: Tomasz Mazan
 Assigned to: Boris Kraft 
Priority: Trivial


User can define templates in subnodes of Config/module/templating/Templates, 
and these templates are visible in template select on Website panel

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



for list details see
http://www.magnolia.info/en/magnolia/developer.html



[magnolia-dev] [JIRA] Updated: (MAGNOLIA-543) Additional functionality - templates from subnodes of Config/module/templating/Templates are included in template select on Website panel

2005-09-08 Thread Tomasz Mazan (JIRA)
 [ http://jira.magnolia.info/browse/MAGNOLIA-543?page=all ]

Tomasz Mazan updated MAGNOLIA-543:
--

Attachment: Template.java

Template.java contains described by this issue

> Additional functionality - templates from subnodes of 
> Config/module/templating/Templates are included in template select on Website 
> panel
> -
>
>  Key: MAGNOLIA-543
>  URL: http://jira.magnolia.info/browse/MAGNOLIA-543
>  Project: magnolia wcm
> Type: New Feature
>   Components: gui-admin
> Reporter: Tomasz Mazan
> Assignee: Boris Kraft
> Priority: Trivial
>  Attachments: Template.java
>
>
> User can define templates in subnodes of Config/module/templating/Templates, 
> and these templates are visible in template select on Website panel

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



for list details see
http://www.magnolia.info/en/magnolia/developer.html



[magnolia-dev] [JIRA] Created: (MAGNOLIA-544) Missing resource for messages_templating_custom

2005-09-08 Thread Michael Aemisegger (JIRA)
Missing resource for messages_templating_custom
---

 Key: MAGNOLIA-544
 URL: http://jira.magnolia.info/browse/MAGNOLIA-544
 Project: magnolia wcm
Type: Bug
  Components: i18n  
Versions: 2.1 Final
 Environment: all
Reporter: Michael Aemisegger
 Assigned to: Boris Kraft 


messages_templating_custom_en.properties should be renamed to 
messages_templating_custom.properties

If there is only one properties file, it should be the default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



for list details see
http://www.magnolia.info/en/magnolia/developer.html



Re: [magnolia-dev] Developing Features - Dynamic Select

2005-09-08 Thread Felipe Curty do Rego Pinto
Boris,

Write a provider could be a cool, it will give a easy way to search things.
Thanks.

Michael, send your code, so I can look how you did the query.

I did one dynamic select that threat search one page, paragraph and a field
and return the uuid (from jcr)
Then I make a reference (just set the type in the dialog admin console to
Referece)

I found a bug in the save class. The getData doesn't threat the REFERENCE
case. See the end of getData( String , int ) in save.java, search for
"//custom")

I'm sending both for you analyse.

If, possible, We can fix it to the next release.

I had some problemans with getNodes( "regexp" ).
I tried to catch the pattern options, options1 , options0, options10 with
the pattern "options(\\d)*", but it doesn't work. May be it is a bug.

If this work, the dynamic will be more generic.

I think tha we can add three features to this dynamic:
- Provider options for external data
- XPATH for internal
- Query for internal

There is another problem with the repositoty. Once I make a reference, it
must check referecial integrity. It does, but the exception is not threated,
just logged. The ideal case is to show a pop-up to the user telling he can't
delete it because there content point to it. I know how to discover if there
is content point to another content, BUT, how can I show a popup or
something like an alert to the user?

Thanks and waiting some directions,
Felipe 

-Original Message-
From: dev-list@magnolia.info [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 8 de setembro de 2005 05:26
To: dev-list@magnolia.info
Subject: Re: [magnolia-dev] Developing Features - Dynamic Select

Boris Kraft wrote:
>> I'm developing a new Control that is a DynamicSelect, it extend the 
>> features of DialogSelect in a dynamic way.
>>
>> Basycally, you create a dialog with this control, and set options to 
>> the "page path", the content collection and the field you want to get.
>>
>> With these informations I populate the select.
>> The objective is to place a Reference to another node, so I can grant 
>> the data integrity.
> 
> maybe you can go one step further and allow entering a provider (class). 
> Then, you can create one provider for your specific idea; others can 
> create their own providers to populate the option. This way, we could 
> use providers that for example query web services or databases for 
> their content.

I already have developed a select dialog with which you can specify SQL. The
SQL is then used search the indexed repository to populate the options. It's
still in Beta that's why I didn't send a patch. Another option could be to
specify XPath Queries. Coming soon.

--
Cheers,
Michael


for list details see
http://www.magnolia.info/en/magnolia/developer.html




DialogDynamicSelect.java
Description: Binary data


Save.java
Description: Binary data

for list details see
http://www.magnolia.info/en/magnolia/developer.html



Re: [magnolia-dev] Developing Features - Dynamic Select

2005-09-08 Thread Boris Kraft

On 08.09.2005, at 16:18, Felipe Curty do Rego Pinto wrote:


My referential integrity test worked.

Some how, the jackrabbit repository when you save a deleted node that 
has
other nodes pointing to it doesnt rollback the deleted node. So it 
take a

lot of exception until you correct the mass.

I put in some parts of the code a check like this.

PropertyIterator propertyIterator = node.getReferences();
if( propertyIterator.hasNext() ) {
throw new ReferentialIntegrityException("The node is pointed by at 
least

one another node");
}

I put this on the methods tha remove an entire node located in
HierarchyManager and Content.

Now I just need to to warn user that thing. But from now, the user try 
to

delete and nothing happens. If some one know how, please, help.

Boris, should I open na issue and post this module and all the fix?


yes please, and please send patches, not the complete classes, else its 
too much hassle for us to check your code

The patch should be against latest trunk

Thanks
- Boris



for list details see
http://www.magnolia.info/en/magnolia/developer.html



[magnolia-dev] [JIRA] Commented: (MAGNOLIA-540) problematic com.oreilly.servlet package license terms

2005-09-08 Thread Boris Kraft (JIRA)
[ http://jira.magnolia.info/browse/MAGNOLIA-540?page=comments#action_11258 
] 

Boris Kraft commented on MAGNOLIA-540:
--

Andreas, thanks for pointing this out - for us it was not problematic because 
we own a copy of the book :-)

Do you have time to check if the alternatives would suffice, and provide a 
patch? 
Thanks, Boris


> problematic com.oreilly.servlet package license terms
> -
>
>  Key: MAGNOLIA-540
>  URL: http://jira.magnolia.info/browse/MAGNOLIA-540
>  Project: magnolia wcm
> Type: Task
> Versions: 2.1 Final
> Reporter: Andreas Brenk
> Assignee: Boris Kraft

>
>
> The WAR file download contains Jason Hunter's com.oreilly.servlet package in 
> the WEB-INF/lib directory. Its license terms (see 
> http://servlets.com/cos/license.html) are problematic I fear.
> Especially items 5 and 6 are currently violated:
> "5. The distribution includes copyright notice as follows: "The source code, 
> object code, and documentation in the com.oreilly.servlet package is 
> copyright and owned by Jason Hunter." in the documentation and/or other 
> materials provided with the distribution.
> 6. You reproduce the above copyright notice, this list of conditions, and the 
> following disclaimer in the documentation and/or other materials provided 
> with the distribution."
> Both "license.txt" and "release notes.txt" contained in the WAR file download 
> do not mention anything demanded by the terms cited above.
> A problematic second point is the license for commercial usage and 
> redistribution as every developer must own a copy of Jason's book or 
> negotiate a seperate license.
> Jakarta Commons FileUpload (http://jakarta.apache.org/commons/fileupload/) is 
> a possible replacement at least for some functionality.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



for list details see
http://www.magnolia.info/en/magnolia/developer.html



Re: [magnolia-dev] Developing Features - Dynamic Select

2005-09-08 Thread John Mettraux
On Thu, Sep 08, 2005 at 09:24:54PM +0200, Boris Kraft wrote:
> 
> yes please, and please send patches, not the complete classes, else its 
> too much hassle for us to check your code
> The patch should be against latest trunk

"Good patching practice" :

http://www.catb.org/~esr/writings/taoup/html/ch19s02.html#patching


Best regards,

-- 
john.mettraux @ openwfe.org  -///-  http://www.openwfe.org


for list details see
http://www.magnolia.info/en/magnolia/developer.html



Re: [magnolia-dev] Developing Features - Dynamic Select

2005-09-08 Thread Felipe Curty do Rego Pinto
Ok,

Felipe Curty do Rego Pinto
[EMAIL PROTECTED]
[EMAIL PROTECTED]
cel: (55 21) 9418 0852



On Thu, 8 Sep 2005 21:27:39 +0200, "John Mettraux"  
escreveu:

> De: "John Mettraux" 
> Data: Thu, 8 Sep 2005 21:27:39 +0200
> Para: 
> Assunto: Re: [magnolia-dev] Developing Features - Dynamic Select
> 
> On Thu, Sep 08, 2005 at 09:24:54PM +0200, Boris Kraft wrote:
> > 
> > yes please, and please send patches, not the complete classes, else its 
> > too much hassle for us to check your code
> > The patch should be against latest trunk
> 
> "Good patching practice" :
> 
> http://www.catb.org/~esr/writings/taoup/html/ch19s02.html#patching
> 
> 
> Best regards,
> 
> -- 
> john.mettraux @ openwfe.org  -///-  http://www.openwfe.org
> 
> 
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> 
> 
> 
> 


for list details see
http://www.magnolia.info/en/magnolia/developer.html



[magnolia-dev] i am here?

2005-09-08 Thread 刘海阳(jazzy)
i am here?


Re: [magnolia-dev] i am here?

2005-09-08 Thread Philipp Bracher

i am here?


Yes you are ;-)

Philipp



for list details see
http://www.magnolia.info/en/magnolia/developer.html